Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
UPDATE false value
Browse files Browse the repository at this point in the history
  • Loading branch information
davcrypto committed Sep 17, 2021
1 parent 521acec commit 6e05382
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x/evm/keeper/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ func (k *Keeper) GetNonce(addr common.Address) uint64 {
"cosmos-address", cosmosAddr.String(),
"error", err,
)
// since adding state error here will break some logic in the go-ethereum (unwanted panic), no
// state error will be store here
// Refer panic: https://github.com/ethereum/go-ethereum/blob/991384a7f6719e1125ca0be7fb27d0c4d1c5d2d3/core/vm/operations_acl.go#L66
}

return nonce
Expand Down Expand Up @@ -603,7 +606,7 @@ func (k *Keeper) Exist(addr common.Address) bool {
// Non-ethereum accounts are considered not empty
func (k *Keeper) Empty(addr common.Address) bool {
if k.HasStateError() {
return true
return false
}

ctx := k.Ctx()
Expand Down

0 comments on commit 6e05382

Please sign in to comment.