mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-11 21:04:11 +00:00
Fix merge conflict
This commit is contained in:
commit
09d35d4bfd
@ -135,9 +135,10 @@ proc getCode*(db: AccountStateDB, address: EthAddress): ByteRange =
|
||||
let codeHash = db.getCodeHash(address)
|
||||
result = db.trie.get(codeHash.toByteRange_Unnecessary)
|
||||
|
||||
proc hasCodeOrNonce*(account: AccountStateDB, address: EthAddress): bool {.inline.} =
|
||||
account.getNonce(address) != 0 or account.getCodeHash(address) != EMPTY_SHA3
|
||||
|
||||
proc dumpAccount*(db: AccountStateDB, addressS: string): string =
|
||||
let address = addressS.parseAddress
|
||||
return fmt"{addressS}: Storage: {db.getStorage(address, 0.u256)}; getAccount: {db.getAccount address}"
|
||||
|
||||
proc hasCodeOrNonce*(account: AccountStateDB, address: EthAddress): bool {.inline.} =
|
||||
account.getNonce(address) != 0 or account.getCodeHash(address) != EMPTY_SHA3
|
||||
|
Loading…
x
Reference in New Issue
Block a user