Function forest_filecoin::rpc::methods::eth::eth_tx_from_native_message
source · fn eth_tx_from_native_message<DB: Blockstore>(
msg: &Message,
state: &StateTree<DB>,
chain_id: u64,
) -> Result<ApiEthTx>
Expand description
Convert a native message to an eth transaction.
- The state-tree must be from after the message was applied (ideally the following tipset).
- In some cases, the “to” address may be
0xff0000000000000000000000ffffffffffffffff
. This means that the “to” address has not been assigned in the passed state-tree and can only happen if the transaction reverted.
eth_tx_from_native_message
does NOT populate:
hash
block_hash
block_number
transaction_index