Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

FIX: to_eth_transaction set wrong input bytes #467

Merged
merged 4 commits into from
Dec 16, 2023
Merged

Conversation

aakoshh
Copy link
Contributor

@aakoshh aakoshh commented Dec 15, 2023

Fixes consensus-shipyard/ipc#188

The RawBytes type from fvm_ipld_encoding strikes again. Unlike in to_eth_typed_transaction, in to_eth_transaction I forgot that Message::params contains IPLD bytes that have to be decoded to get rid of the length prefix. The result was that the Transaction::input field returned from the Ethereum API did not match the Eip1559TranasctionRequest::data field the client sent, it was wrapped as an IPLD byte vector. This gets me every time 😞

@aakoshh aakoshh requested a review from adlrocha December 15, 2023 23:45
@aakoshh aakoshh merged commit 30c1eea into main Dec 16, 2023
4 of 5 checks passed
@aakoshh aakoshh deleted the fix-to-eth-tx-data branch December 16, 2023 00:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bytecode is not the same as in Calibration
1 participant