[#2] Fix bad field naming in InstrHash structure

Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
This commit is contained in:
Ekaterina Lebedeva 2023-08-04 16:39:34 +03:00
parent e4dff3d6a1
commit 6bdec59abf

View file

@ -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(),
})