pub(crate) trait ActorStateEthExt {
// Required methods
fn eth_nonce<DB: Blockstore>(&self, store: &DB) -> Result<EthUint64>;
fn eth_bytecode<DB: Blockstore>(
&self,
store: &DB,
) -> Result<Option<EthBytes>>;
}Expand description
Extension trait for querying Ethereum-relevant state from a Filecoin actor.
Required Methods§
Sourcefn eth_nonce<DB: Blockstore>(&self, store: &DB) -> Result<EthUint64>
fn eth_nonce<DB: Blockstore>(&self, store: &DB) -> Result<EthUint64>
Returns the effective nonce: EVM nonce for EVM actors, sequence otherwise.
Sourcefn eth_bytecode<DB: Blockstore>(&self, store: &DB) -> Result<Option<EthBytes>>
fn eth_bytecode<DB: Blockstore>(&self, store: &DB) -> Result<Option<EthBytes>>
Returns the deployed bytecode of an EVM actor, or None for non-EVM actors.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.