Open s1na opened 5 years ago
How about accountState
, which returns:
@chfast what do you think?
@s1na cannot you emulate this feature by externalBalance() != 0 || extcodeHash() != 0
?
Hm, perhaps we just need to implement #183, because that brings in EXTCODEHASH
which supposed to be able to tell if an account exists: https://eips.ethereum.org/EIPS/eip-1052
account_exists()
although it works the same as described here.CALL
and SELFDESTRUCT
.EXTCODEHASH
by hashing the code in the VM, but EXTCODEHASH
assumes the hash is already known in the state and no hashing is required.Returning all account information at once was proposed here:
This method is required for metering
CALL
in runevm/evm2ewasm (#138 and https://github.com/axic/runevm/issues/18 for some context), and can also be used in implementingEXTCODEHASH
(without adding an additional method to EEI).I believe #112 could alternatively also solve this problem. I'm not sure however what's the consensus on that.