Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
8b6c1218
Commit
8b6c1218
authored
Jul 30, 2020
by
vipwzw
Committed by
33cn
Aug 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto ci
parent
c9ec7b28
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
6 additions
and
3 deletions
+6
-3
abi.go
plugin/dapp/evm/executor/abi/abi.go
+1
-0
argument.go
plugin/dapp/evm/executor/abi/argument.go
+1
-0
numbers.go
plugin/dapp/evm/executor/abi/numbers.go
+2
-1
fp.go
plugin/dapp/evm/executor/vm/common/crypto/bls12381/fp.go
+1
-1
fp_test.go
...in/dapp/evm/executor/vm/common/crypto/bls12381/fp_test.go
+1
-1
errors.go
plugin/dapp/evm/executor/vm/model/errors.go
+0
-0
protocol_params.go
plugin/dapp/evm/executor/vm/params/protocol_params.go
+0
-0
No files found.
plugin/dapp/evm/executor/abi/abi.go
View file @
8b6c1218
...
@@ -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
{
...
...
plugin/dapp/evm/executor/abi/argument.go
View file @
8b6c1218
...
@@ -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
...
...
plugin/dapp/evm/executor/abi/numbers.go
View file @
8b6c1218
...
@@ -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.
...
...
plugin/dapp/evm/executor/vm/common/crypto/bls12381/fp.go
View file @
8b6c1218
...
@@ -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
{
...
...
plugin/dapp/evm/executor/vm/common/crypto/bls12381/fp_test.go
View file @
8b6c1218
...
@@ -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
--
}
}
}
}
}
}
...
...
plugin/dapp/evm/executor/vm/model/errors.go
View file @
8b6c1218
plugin/dapp/evm/executor/vm/params/protocol_params.go
View file @
8b6c1218
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment