lotus/chain/types/ethtypes
Steven Allen 9b4df6a4d0
fix: eth: use the correct state-tree when resolving addresses (#11387)
We need to always use the state-tree from the tipset _after_ the message
executed. If we use any other state-tree, we might not find the address
we're trying to resolve.

This change also has some implication for pending messages: there's no
guarantee we'll be able to generate a 0x-style address for a pending
native message. So, instead of trying, I've removed support for pending
native messages from the Eth API. Messages from EthAccounts will still
work, and native messages will still show up in blocks/traces, they just
won't show up as "pending". Which should affect exactly nobody.

I'm also taking this opportunity to cleanup some edge-cases:

1. Pass contexts where appropriate.
2. Remove all state access from `ethTxHashFromSignedMessage`.

Part of #11355
2023-11-17 18:20:31 +01:00
..
eth_transactions_test.go remove invalid test cases 2023-01-14 12:30:06 -05:00
eth_transactions.go fix: eth: use the correct state-tree when resolving addresses (#11387) 2023-11-17 18:20:31 +01:00
eth_types_test.go feat: eth API: reject masked ID addresses embedded in f410f payloads 2023-03-10 10:57:39 -08:00
eth_types.go Parse input/output for delegate call + other smaller things 2023-08-28 17:48:22 +00:00
rlp_test.go fix: ethtypes: handle length overflow case 2023-07-21 12:26:29 -04:00
rlp.go fix: ethtypes: handle length overflow case 2023-07-21 12:26:29 -04:00