[#2] Fix bad field naming in InstrHash structure
Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
This commit is contained in:
parent
e4dff3d6a1
commit
6bdec59abf
1 changed files with 2 additions and 2 deletions
|
@ -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(),
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue