From 6bdec59abf624c0f14632c6d713bc3abe370ec91 Mon Sep 17 00:00:00 2001 From: Ekaterina Lebedeva Date: Fri, 4 Aug 2023 16:39:34 +0300 Subject: [PATCH] [#2] Fix bad field naming in InstrHash structure Signed-off-by: Ekaterina Lebedeva --- covertest/run.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/covertest/run.go b/covertest/run.go index 9ffaa5e..173f13d 100644 --- a/covertest/run.go +++ b/covertest/run.go @@ -11,7 +11,7 @@ import ( // InstrHash maps Instruction with its Script Hash. type InstrHash struct { - Num int + Offset int Instruction opcode.Opcode ScriptHash util.Uint160 } @@ -44,7 +44,7 @@ func Run(v *vm.VM) ([]InstrHash, error) { case v.State() == vmstate.None: nStr, curInstr := v.Context().NextInstr() ops = append(ops, InstrHash{ - Num: nStr, + Offset: nStr, Instruction: curInstr, ScriptHash: v.Context().ScriptHash(), })