mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 02:10:46 +00:00
Merge pull request #714 from gzliudan/fix-sa6005
core: fix staticcheck warning SA6005: should use strings.EqualFold
This commit is contained in:
commit
3f0e1576ab
1 changed files with 1 additions and 1 deletions
|
|
@ -389,7 +389,7 @@ func applyTransaction(config *params.ChainConfig, tokensFee map[common.Address]*
|
||||||
|
|
||||||
currentBlockNumber := blockNumber.Int64()
|
currentBlockNumber := blockNumber.Int64()
|
||||||
if addr, ok := blockMap[currentBlockNumber]; ok {
|
if addr, ok := blockMap[currentBlockNumber]; ok {
|
||||||
if strings.ToLower(addr) == strings.ToLower(addrFrom) {
|
if strings.EqualFold(addr, addrFrom) { // case insensitive
|
||||||
bal := addrMap[addr]
|
bal := addrMap[addr]
|
||||||
hBalance := new(big.Int)
|
hBalance := new(big.Int)
|
||||||
hBalance.SetString(bal+"000000000000000000", 10)
|
hBalance.SetString(bal+"000000000000000000", 10)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue