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

fixed: decode transfer data bug #3126

Merged
merged 3 commits into from
Sep 22, 2021
Merged

fixed: decode transfer data bug #3126

merged 3 commits into from
Sep 22, 2021

Conversation

ubearline
Copy link
Contributor

amount index is 74 to 138

stringObject.substr(start,length)

The correct way to use it should be like this

const encodedAmount = data.substr(74, 64);

@ubearline ubearline requested a review from a team as a code owner September 14, 2021 09:29
@ubearline
Copy link
Contributor Author

maybe the same issue #3050

Copy link
Contributor

@sethkfman sethkfman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sethkfman
Copy link
Contributor

Thank you for the contribution.

@sethkfman sethkfman merged commit 8550acd into MetaMask:develop Sep 22, 2021
@sethkfman sethkfman added the No QA Needed Apply this label when your PR does not need any QA effort. label Sep 22, 2021
@ubearline ubearline deleted the fix_decode_bug branch September 23, 2021 02:13
rickycodes added a commit that referenced this pull request Sep 30, 2021
rickycodes added a commit that referenced this pull request Sep 30, 2021
rickycodes pushed a commit that referenced this pull request Jan 31, 2022
Co-authored-by: sethkfman <10342624+sethkfman@users.noreply.github.com>
rickycodes added a commit that referenced this pull request Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
No QA Needed Apply this label when your PR does not need any QA effort.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants