瀏覽代碼

Merge pull request #17244 from chainpunk/master

core: fix typo in comment code
Péter Szilágyi 7 年之前
父節點
當前提交
a0bcb16875
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/evm.go

+ 1 - 1
core/evm.go

@@ -84,7 +84,7 @@ func GetHashFn(ref *types.Header, chain ChainContext) func(n uint64) common.Hash
 	}
 }
 
-// CanTransfer checks wether there are enough funds in the address' account to make a transfer.
+// CanTransfer checks whether there are enough funds in the address' account to make a transfer.
 // This does not take the necessary gas in to account to make the transfer valid.
 func CanTransfer(db vm.StateDB, addr common.Address, amount *big.Int) bool {
 	return db.GetBalance(addr).Cmp(amount) >= 0