From 9207e00e745f0ccd8cc21903856966816330a17b Mon Sep 17 00:00:00 2001 From: William Law Date: Tue, 1 Aug 2023 18:28:05 -0700 Subject: [PATCH] [fix] charge MutBorrowFieldGeneric properly (#9420) --- 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)?;