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) {
}
var revertSelector = crypto.Keccak256([]byte("Error(string)"))[:4]
// UnpackRevert 解包转换为string
func UnpackRevert(data []byte) (string, error) {
if len(data) < 4 {
......
......@@ -30,6 +30,7 @@ type Argument struct {
Type Type
Indexed bool // indexed is only used by events
}
// Arguments 参数
type Arguments []Argument
......
......@@ -17,8 +17,9 @@
package abi
import (
"github.com/33cn/plugin/plugin/dapp/evm/executor/vm/common"
"math/big"
"github.com/33cn/plugin/plugin/dapp/evm/executor/vm/common"
)
// U256 converts a big Int into a 256bit EVM number.
......
......@@ -127,7 +127,7 @@ func inverse(inv, e *fe) {
laddAssign(s, r)
z += r.mul2()
}
k ++
k++
}
if !found {
......
......@@ -846,7 +846,7 @@ func TestFp2NonResidue(t *testing.T) {
t.Fatal("element is quadratic non residue, 2", i)
}
} 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