mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-29 23:33:37 +00:00
vm: implement EQUAL via reflection
Fixes failing tests.
This commit is contained in:
parent
d26be7dcc1
commit
0309cff5a2
1 changed files with 4 additions and 1 deletions
|
@ -9,6 +9,7 @@ import (
|
||||||
"math/big"
|
"math/big"
|
||||||
"os"
|
"os"
|
||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
|
"reflect"
|
||||||
|
|
||||||
"github.com/CityOfZion/neo-go/pkg/util"
|
"github.com/CityOfZion/neo-go/pkg/util"
|
||||||
"golang.org/x/crypto/ripemd160"
|
"golang.org/x/crypto/ripemd160"
|
||||||
|
@ -349,7 +350,9 @@ func (v *VM) execute(ctx *Context, op Instruction) {
|
||||||
v.estack.Pop()
|
v.estack.Pop()
|
||||||
|
|
||||||
case EQUAL:
|
case EQUAL:
|
||||||
panic("TODO EQUAL")
|
b := v.estack.Pop()
|
||||||
|
a := v.estack.Pop()
|
||||||
|
v.estack.PushVal(reflect.DeepEqual(a,b))
|
||||||
|
|
||||||
// Bit operations.
|
// Bit operations.
|
||||||
case AND:
|
case AND:
|
||||||
|
|
Loading…
Reference in a new issue