Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recucsive evm call traces contain raw params #1523

Closed
magik6k opened this issue Jan 20, 2023 · 4 comments
Closed

Recucsive evm call traces contain raw params #1523

magik6k opened this issue Jan 20, 2023 · 4 comments

Comments

@magik6k
Copy link
Contributor

magik6k commented Jan 20, 2023

On wallaby we StateCall trace params look like:

"Params": "WGTLd4bXAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAK",
"Params": "WGTLd4bXAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAK",
"Params": null,
"Params": "y3eG1wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACQ==",
"Params": null,
"Params": "y3eG1wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACA==",
"Params": null,
"Params": "y3eG1wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABw==", 

Subcall params are supposed to be a cbor byte array, but is just a raw array.

From ./lotus state --tipset @3913 compute-state --html.

Found when debugging filecoin-project/lotus#10038 with @shrenujbansal

@jennijuju
Copy link
Member

jennijuju commented Jan 20, 2023

are subcall params suppose to be cobra byte array only tho?

filecoin-project/builtin-actors#913

@shrenujbansal
Copy link

are subcall params suppose to be cobra byte array only tho?

filecoin-project/builtin-actors#913

Yes, that's the assumption we make everywhere in Lotus today
We need to make the encoding for subcalls consistent and make them a cbor byte array or include the codec in the call so we can properly decode the params

@Stebalien
Copy link
Member

This has now been fixed in the FVM. However, codec information now needs to be plumbed through the FFI.

@Stebalien
Copy link
Member

Fixed everywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants