aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhadv <dvietha@gmail.com>2018-07-25 19:04:38 +0800
committerhadv <dvietha@gmail.com>2018-07-25 19:04:38 +0800
commitbc0a43191e321acb1715cdf7de283c67a8212d9e (patch)
treec4e82ba5c6166ac23f9ccbc5e5e7bccb5224ba4e
parent10780e8a0005832f3135bbae1a7b5687b7e487c8 (diff)
downloadgo-tangerine-bc0a43191e321acb1715cdf7de283c67a8212d9e.tar.gz
go-tangerine-bc0a43191e321acb1715cdf7de283c67a8212d9e.tar.zst
go-tangerine-bc0a43191e321acb1715cdf7de283c67a8212d9e.zip
core: fix typo in comment code
-rw-r--r--core/evm.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/evm.go b/core/evm.go
index 596ea95fb..d303c40a4 100644
--- a/core/evm.go
+++ b/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