lotus/node/impl
Steven Allen cff785fa37
fix: eth: correctly encode and simplify native input/output encoding (#11382)
* chore: eth: move & rename input/output encoding functions

These are shared functions, so I'm moving them to the utils library.

* fix: eth: correctly encode and simplify native input/output encoding

When generating eth traces, we encode "native" message inputs/outputs
to "solidity ABI" by formatting the inputs/outputs the same way we do in
FEVM's "handle_native_method". However, we had quite a few bugs with the
implementation:

1. We were right-aligning 64bit values in 256bit words, instead of
left-aligning (as we should given that these values are big-endian).
2. The return-value encoding wasn't correctly handling lengths.

This patch:

1. Fixes those bugs.
2. Deduplicates the logic (we're doing _basically_ the same thing in
both cases).
3. Removes all error paths (these functions can't fail).
2023-11-06 09:41:22 -08:00
..
client Merge branch 'feat/nv21' into asr/merge-feat-nv21 2023-10-16 11:13:33 -04:00
common feat: Add node uptime rpc / output in info command 2022-10-11 10:11:09 +02:00
full fix: eth: correctly encode and simplify native input/output encoding (#11382) 2023-11-06 09:41:22 -08:00
market chore: fix imports 2022-06-14 17:00:51 +02:00
net stop using go-libp2p deprecated peer.ID.Pretty 2023-09-12 13:13:34 +08:00
paych chore: fix imports 2022-06-14 17:00:51 +02:00
backup.go Plumb contexts through 2021-12-11 17:04:00 -05:00
full.go Refactor eth.go 2023-08-28 17:48:22 +00:00
remoteworker.go storage: Move extern/sector-storage to storage/sealer 2022-06-14 20:03:38 +02:00
storminer.go Merge branch 'feat/nv21' into asr/merge-feat-nv21 2023-10-16 11:13:33 -04:00