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

[Bug] Charge MutBorrowFieldGeneric properly #9419

Closed
wlawt opened this issue Aug 2, 2023 · 0 comments · Fixed by #9420
Closed

[Bug] Charge MutBorrowFieldGeneric properly #9419

wlawt opened this issue Aug 2, 2023 · 0 comments · Fixed by #9420
Assignees
Labels
bug Something isn't working

Comments

@wlawt
Copy link
Contributor

wlawt commented Aug 2, 2023

🐛 Bug

MutBorrowFieldGeneric is currently being charged as MutBorrowField in the interpreter.rs

It's not a backward compatibility issue.

To reproduce

third_part/move/move-vm/runtime/src/interpreter.rs

                    Bytecode::ImmBorrowFieldGeneric(fi_idx)
                    | Bytecode::MutBorrowFieldGeneric(fi_idx) => {
                        let instr = match instruction {
                            Bytecode::MutBorrowField(_) => S::MutBorrowFieldGeneric,
                            _ => S::ImmBorrowFieldGeneric,
                        };
                        println!("{:?}", instr);
                        gas_meter.charge_simple_instr(instr)?;
@wlawt wlawt added the bug Something isn't working label Aug 2, 2023
@wlawt wlawt self-assigned this Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant