[#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.
|
// InstrHash maps Instruction with its Script Hash.
|
||||||
type InstrHash struct {
|
type InstrHash struct {
|
||||||
Num int
|
Offset int
|
||||||
Instruction opcode.Opcode
|
Instruction opcode.Opcode
|
||||||
ScriptHash util.Uint160
|
ScriptHash util.Uint160
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@ func Run(v *vm.VM) ([]InstrHash, error) {
|
||||||
case v.State() == vmstate.None:
|
case v.State() == vmstate.None:
|
||||||
nStr, curInstr := v.Context().NextInstr()
|
nStr, curInstr := v.Context().NextInstr()
|
||||||
ops = append(ops, InstrHash{
|
ops = append(ops, InstrHash{
|
||||||
Num: nStr,
|
Offset: nStr,
|
||||||
Instruction: curInstr,
|
Instruction: curInstr,
|
||||||
ScriptHash: v.Context().ScriptHash(),
|
ScriptHash: v.Context().ScriptHash(),
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue