aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-07-25 19:07:54 +0800
committerGitHub <noreply@github.com>2018-07-25 19:07:54 +0800
commita0bcb16875cbbc47504cc78e9ef569629a0f6c35 (patch)
tree47755ad8dd0969e9913c4d5faf917eeebb8e547c
parent1064b9e69189efd65c5de9149f37614cde9b5944 (diff)
parentbc0a43191e321acb1715cdf7de283c67a8212d9e (diff)
downloadgo-tangerine-a0bcb16875cbbc47504cc78e9ef569629a0f6c35.tar
go-tangerine-a0bcb16875cbbc47504cc78e9ef569629a0f6c35.tar.gz
go-tangerine-a0bcb16875cbbc47504cc78e9ef569629a0f6c35.tar.bz2
go-tangerine-a0bcb16875cbbc47504cc78e9ef569629a0f6c35.tar.lz
go-tangerine-a0bcb16875cbbc47504cc78e9ef569629a0f6c35.tar.xz
go-tangerine-a0bcb16875cbbc47504cc78e9ef569629a0f6c35.tar.zst
go-tangerine-a0bcb16875cbbc47504cc78e9ef569629a0f6c35.zip
Merge pull request #17244 from chainpunk/master
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