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--
}
}
}
......
......@@ -40,13 +40,13 @@ var (
ErrMaxCodeSizeExceeded = errors.New("evm: max code size exceeded")
// ErrNoCoinsAccount no coins account in executor!
ErrNoCoinsAccount = errors.New("no coins account in executor")
ErrNoCoinsAccount = errors.New("no coins account in executor")
// ErrReturnStackExceeded
ErrReturnStackExceeded = errors.New("return stack limit reached")
ErrReturnStackExceeded = errors.New("return stack limit reached")
// ErrInvalidSubroutineEntry
ErrInvalidSubroutineEntry = errors.New("invalid subroutine entry")
// ErrInvalidJump
ErrInvalidJump = errors.New("invalid jump destination")
ErrInvalidJump = errors.New("invalid jump destination")
// ErrInvalidRetsub
ErrInvalidRetsub = errors.New("invalid retsub")
ErrInvalidRetsub = errors.New("invalid retsub")
)
......@@ -82,7 +82,7 @@ const (
//SloadGasEIP150 uint64 = 200
//SloadGasEIP1884 uint64 = 800 // Cost of SLOAD after EIP 1884 (part of Istanbul)
//SloadGasEIP2200 uint64 = 800 // Cost of SLOAD after EIP 2200 (part of Istanbul)
ExtcodeHashGasConstantinople uint64 = 400 // Cost of EXTCODEHASH (introduced in Constantinople)
ExtcodeHashGasConstantinople uint64 = 400 // Cost of EXTCODEHASH (introduced in Constantinople)
//ExtcodeHashGasEIP1884 uint64 = 700 // Cost of EXTCODEHASH after EIP 1884 (part in Istanbul)
//SelfdestructGasEIP150 uint64 = 5000 // Cost of SELFDESTRUCT post EIP 150 (Tangerine)
//
......@@ -139,9 +139,9 @@ var (
// DifficultyBoundDivisor The bound divisor of the difficulty, used in the update calculations.
DifficultyBoundDivisor = big.NewInt(2048)
// GenesisDifficulty Difficulty of the Genesis block.
GenesisDifficulty = big.NewInt(131072)
GenesisDifficulty = big.NewInt(131072)
// MinimumDifficulty The minimum that the difficulty may ever be.
MinimumDifficulty = big.NewInt(131072)
MinimumDifficulty = big.NewInt(131072)
// DurationLimit The decision boundary on the blocktime duration used to determine whether difficulty should go up or not.
DurationLimit = big.NewInt(13)
DurationLimit = big.NewInt(13)
)
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