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(polyjuice): native transfer needs check gas limit before pay fee #1011

Merged
merged 2 commits into from
Mar 22, 2023
Merged

fix(polyjuice): native transfer needs check gas limit before pay fee #1011

merged 2 commits into from
Mar 22, 2023

Conversation

magicalne
Copy link
Contributor

Native transferring doesn't check the actual gas used. This makes it happens that charging more fee than the gas limit. Or in another sense, the gas limit is ignored. This occurs when transferring to an unregistered address.
We can fix this by comparing gas_used and gas_limit before paying the fee.

@Flouse Flouse requested review from jjyr, a team and Flouse March 2, 2023 13:19
@Flouse Flouse added the P-Low label Mar 13, 2023
Copy link
Collaborator

@Flouse Flouse left a comment

Choose a reason for hiding this comment

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

I think this change requires a new poly_backend_fork, right?
@magicalne

@Flouse Flouse requested a review from sunchengzhu March 20, 2023 14:33
@magicalne
Copy link
Contributor Author

I think this change requires a new poly_backend_fork, right?

Yes, this change is not compatible.

@jjyr jjyr added this pull request to the merge queue Mar 22, 2023
@jjyr jjyr merged commit ba999a4 into godwokenrises:develop Mar 22, 2023
@Flouse
Copy link
Collaborator

Flouse commented Mar 22, 2023

I think this change requires a new poly_backend_fork, right?

Yes, this change is not compatible.

cc @Simon-Tl

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

Successfully merging this pull request may close these issues.

4 participants