forked from TrueCloudLab/neoneo-go
vm: simplify interop id in json tests
This commit is contained in:
parent
68ad620af0
commit
299491080a
1 changed files with 3 additions and 4 deletions
|
@ -3,7 +3,6 @@ package vm
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
"encoding/binary"
|
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
@ -117,14 +116,14 @@ func getTestingInterop(id uint32) *InteropFuncPrice {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
switch id {
|
switch id {
|
||||||
case binary.LittleEndian.Uint32([]byte{0x77, 0x77, 0x77, 0x77}):
|
case 0x77777777:
|
||||||
return &InteropFuncPrice{Func: f}
|
return &InteropFuncPrice{Func: f}
|
||||||
case binary.LittleEndian.Uint32([]byte{0x66, 0x66, 0x66, 0x66}):
|
case 0x66666666:
|
||||||
return &InteropFuncPrice{
|
return &InteropFuncPrice{
|
||||||
Func: f,
|
Func: f,
|
||||||
RequiredFlags: smartcontract.ReadOnly,
|
RequiredFlags: smartcontract.ReadOnly,
|
||||||
}
|
}
|
||||||
case binary.LittleEndian.Uint32([]byte{0x55, 0x55, 0x55, 0x55}):
|
case 0x55555555:
|
||||||
return &InteropFuncPrice{
|
return &InteropFuncPrice{
|
||||||
Func: f,
|
Func: f,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue