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] fix gas consume of native_destroy_signer #5607

Merged
merged 1 commit into from
Aug 13, 2020
Merged

[fix] fix gas consume of native_destroy_signer #5607

merged 1 commit into from
Aug 13, 2020

Conversation

LEAFERx
Copy link
Contributor

@LEAFERx LEAFERx commented Aug 13, 2020

Motivation

There is a mistake in pub fn native_destroy_signer(...) at language/move-vm/natives/account.rs, which uses wrong NativeCostIndex so the gas is charged wrongly.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

It should be a clear typo mistake, and the change of the code can be tested the same as the original code.

Copy link
Contributor

@tzakian tzakian left a comment

Choose a reason for hiding this comment

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

This looks good to me. Good find!

/land

@bors-libra bors-libra merged commit 67d36aa into diem:master Aug 13, 2020
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