Crate zk_evm_common

Source

Macros§

check_chain_features
A convenience macro to check the feature flags activating chain specific behaviors. Only one of these flags may be activated at a time.

Constants§

EMPTY_CODE_HASH
The hash value of an account empty EVM code. 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470
EMPTY_TRIE_HASH
The hash of an empty Merkle Patricia trie. 0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421

Functions§

eth_to_wei
Converts an amount in ETH to wei units.
gwei_to_wei
Converts an amount in gwei to wei units. This also works for converting ETH to gwei.