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

cast 4byte-decode can not decode struct type param #1903

Closed
1 of 2 tasks
NIC619 opened this issue Jun 10, 2022 · 0 comments · Fixed by #2151
Closed
1 of 2 tasks

cast 4byte-decode can not decode struct type param #1903

NIC619 opened this issue Jun 10, 2022 · 0 comments · Fixed by #2151
Assignees
Labels
C-cast Command: cast T-bug Type: bug

Comments

@NIC619
Copy link
Contributor

NIC619 commented Jun 10, 2022

Component

Cast

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

cast 0.2.0 (20b2926 2022-06-10T00:15:22.550741Z)

What command(s) is the bug in?

cast 4bd

Operating System

No response

Describe the bug

Example command: decoding with cast 4bd:

cast 4bd 0x64a3bc15000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000310d12ef15a00640000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000ae347930bd1e7b0f35588b92280f9e750000000000000000000000008d90113a1e286a5ab3e496fbd1853f265e5913c6000000000000000000000000911c2311503c0da6a4d82d40bc3bad4ade10d2380000000000000000000000008d90113a1e286a5ab3e496fbd1853f265e5913c6000000000000000000000000000000000000000000000000000000175336709400000000000000000000000000000000000000000000000310d12ef15a006400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000062a314f40833592b8044884c18244af94f82e7e8e5cb403b567a6aa7402b6560991d0012000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000024f47261b0000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024f47261b0000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000581b75ec8514073f54f6cd3e16379482cc8f76e1c47a99282b23283c69999887f0465f64630ec9391a9e3d6fa908f63475bcb3ef11ab702f26c29e2b04ff71cde755911c2311503c0da6a4d82d40bc3bad4ade10d2380012040000000000000000

Error:

The application panicked (crashed).
Message:  could not convert fillOrKillOrder((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes),uint256,bytes) to function
Location: utils/src/lib.rs:264

The abi-encoded data is the data of the internal transaction to 0x exchange proxy of a successful transaction.

@NIC619 NIC619 added the T-bug Type: bug label Jun 10, 2022
@onbjerg onbjerg added this to Foundry Jun 10, 2022
@onbjerg onbjerg moved this to Todo in Foundry Jun 10, 2022
@onbjerg onbjerg added the C-cast Command: cast label Jun 10, 2022
@mattsse mattsse self-assigned this Jun 10, 2022
Repository owner moved this from Todo to Done in Foundry Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-cast Command: cast T-bug Type: bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants