Commit 8b6c1218 authored by vipwzw's avatar vipwzw Committed by 33cn

auto ci

parent c9ec7b28
...@@ -242,6 +242,7 @@ func (abi *ABI) MethodByID(sigdata []byte) (*Method, error) { ...@@ -242,6 +242,7 @@ func (abi *ABI) MethodByID(sigdata []byte) (*Method, error) {
} }
var revertSelector = crypto.Keccak256([]byte("Error(string)"))[:4] var revertSelector = crypto.Keccak256([]byte("Error(string)"))[:4]
// UnpackRevert 解包转换为string // UnpackRevert 解包转换为string
func UnpackRevert(data []byte) (string, error) { func UnpackRevert(data []byte) (string, error) {
if len(data) < 4 { if len(data) < 4 {
......
...@@ -30,6 +30,7 @@ type Argument struct { ...@@ -30,6 +30,7 @@ type Argument struct {
Type Type Type Type
Indexed bool // indexed is only used by events Indexed bool // indexed is only used by events
} }
// Arguments 参数 // Arguments 参数
type Arguments []Argument type Arguments []Argument
......
...@@ -17,8 +17,9 @@ ...@@ -17,8 +17,9 @@
package abi package abi
import ( import (
"github.com/33cn/plugin/plugin/dapp/evm/executor/vm/common"
"math/big" "math/big"
"github.com/33cn/plugin/plugin/dapp/evm/executor/vm/common"
) )
// U256 converts a big Int into a 256bit EVM number. // U256 converts a big Int into a 256bit EVM number.
......
...@@ -127,7 +127,7 @@ func inverse(inv, e *fe) { ...@@ -127,7 +127,7 @@ func inverse(inv, e *fe) {
laddAssign(s, r) laddAssign(s, r)
z += r.mul2() z += r.mul2()
} }
k ++ k++
} }
if !found { if !found {
......
...@@ -846,7 +846,7 @@ func TestFp2NonResidue(t *testing.T) { ...@@ -846,7 +846,7 @@ func TestFp2NonResidue(t *testing.T) {
t.Fatal("element is quadratic non residue, 2", i) t.Fatal("element is quadratic non residue, 2", i)
} }
} else { } else {
i -- i--
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment