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

fix(relayer): fix decodeMessageSentData #16391

Merged
merged 3 commits into from
Mar 11, 2024
Merged

Conversation

xiaodino
Copy link
Contributor

@xiaodino xiaodino commented Mar 11, 2024

Example tx:
https://l1explorer.internal.taiko.xyz/tx/0x354fe0e1ac78ebcb3d9088b6fd27e6fef6a4988c132d2e9513486b0f9d480d8f

The MessageSentData is
7f07c947000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000000800000000000000000000000006e7cfe3fd749f6e1c53bc1065fc702eb6c22f6000000000000000000000000006e7cfe3fd749f6e1c53bc1065fc702eb6c22f60000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000028c590000000000000000000000006e7cfe3fd749f6e1c53bc1065fc702eb6c22f600000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000004544553540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000095465737445524332300000000000000000000000000000000000000000000000

7f07c947: Identifies the onMessageInvocation function
The rest data is divided into 32 bytes

0000000000000000000000000000000000000000000000000000000000000020
00000000000000000000000000000000000000000000000000000000000001a0
0000000000000000000000000000000000000000000000000000000000000080
0000000000000000000000008626f6940e2eb28930efb4cef49b2d1f2c9c1199
0000000000000000000000008626f6940e2eb28930efb4cef49b2d1f2c9c1199
0000000000000000000000000000000000000000000000003782dace9d900000
0000000000000000000000000000000000000000000000000000000000007e7e
00000000000000000000000056d655dc05a374643dc3bffbda002522053ba14b
0000000000000000000000000000000000000000000000000000000000000012
00000000000000000000000000000000000000000000000000000000000000a0
00000000000000000000000000000000000000000000000000000000000000e0
0000000000000000000000000000000000000000000000000000000000000005
484f525345000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000b
486f72736520546f6b656e000000000000000000000000000000000000000000

CanonicalERC20 data is started from 6th

0000000000000000000000000000000000000000000000000000000000007e7e
00000000000000000000000056d655dc05a374643dc3bffbda002522053ba14b
0000000000000000000000000000000000000000000000000000000000000012
00000000000000000000000000000000000000000000000000000000000000a0
00000000000000000000000000000000000000000000000000000000000000e0
0000000000000000000000000000000000000000000000000000000000000005
484f525345000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000b
486f72736520546f6b656e000000000000000000000000000000000000000000

@xiaodino xiaodino added this pull request to the merge queue Mar 11, 2024
Merged via the queue into main with commit d9dc4b6 Mar 11, 2024
12 checks passed
@xiaodino xiaodino deleted the xiaodino/fix-decode-message-1 branch March 11, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants