From bdd557528537fb44c2bf9a610221186982d598ee Mon Sep 17 00:00:00 2001 From: William Law Date: Tue, 1 Aug 2023 17:42:16 -0700 Subject: [PATCH] [fix] charge MutBorrowFieldGeneric properly --- third_party/move/move-vm/runtime/src/interpreter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/move/move-vm/runtime/src/interpreter.rs b/third_party/move/move-vm/runtime/src/interpreter.rs index a805cb35b4f00..798c31bcc37d4 100644 --- a/third_party/move/move-vm/runtime/src/interpreter.rs +++ b/third_party/move/move-vm/runtime/src/interpreter.rs @@ -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)?;