Skip to content

Commit

Permalink
[fix] charge MutBorrowFieldGeneric properly (#9420)
Browse files Browse the repository at this point in the history
  • Loading branch information
wlawt authored and xbtmatt committed Aug 13, 2023
1 parent 51326b4 commit 9207e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/move/move-vm/runtime/src/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1937,7 +1937,7 @@ impl Frame {
Bytecode::ImmBorrowFieldGeneric(fi_idx)
| Bytecode::MutBorrowFieldGeneric(fi_idx) => {
let instr = match instruction {
Bytecode::MutBorrowField(_) => S::MutBorrowFieldGeneric,
Bytecode::MutBorrowFieldGeneric(_) => S::MutBorrowFieldGeneric,
_ => S::ImmBorrowFieldGeneric,
};
gas_meter.charge_simple_instr(instr)?;
Expand Down

0 comments on commit 9207e00

Please sign in to comment.