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
fb2d4071
Commit
fb2d4071
authored
Nov 24, 2021
by
轻松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update evmxgo test
parent
7e705ce3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
exec_test.go
plugin/dapp/evmxgo/executor/exec_test.go
+3
-3
No files found.
plugin/dapp/evmxgo/executor/exec_test.go
View file @
fb2d4071
...
@@ -133,7 +133,7 @@ func init() {
...
@@ -133,7 +133,7 @@ func init() {
}
}
func
getprivkey
(
key
string
)
crypto
.
PrivKey
{
func
getprivkey
(
key
string
)
crypto
.
PrivKey
{
cr
,
err
:=
crypto
.
New
(
types
.
GetSignName
(
""
,
types
.
SECP256K1
)
)
cr
,
err
:=
crypto
.
Load
(
types
.
GetSignName
(
""
,
types
.
SECP256K1
),
-
1
)
if
err
!=
nil
{
if
err
!=
nil
{
panic
(
err
)
panic
(
err
)
}
}
...
@@ -149,7 +149,7 @@ func getprivkey(key string) crypto.PrivKey {
...
@@ -149,7 +149,7 @@ func getprivkey(key string) crypto.PrivKey {
}
}
func
genaddress
()
(
string
,
crypto
.
PrivKey
)
{
func
genaddress
()
(
string
,
crypto
.
PrivKey
)
{
cr
,
err
:=
crypto
.
New
(
types
.
GetSignName
(
""
,
types
.
SECP256K1
)
)
cr
,
err
:=
crypto
.
Load
(
types
.
GetSignName
(
""
,
types
.
SECP256K1
),
-
1
)
if
err
!=
nil
{
if
err
!=
nil
{
panic
(
err
)
panic
(
err
)
}
}
...
@@ -187,7 +187,7 @@ func waitTx(hash []byte) bool {
...
@@ -187,7 +187,7 @@ func waitTx(hash []byte) bool {
func
signTx
(
tx
*
types
.
Transaction
,
hexPrivKey
string
)
(
*
types
.
Transaction
,
error
)
{
func
signTx
(
tx
*
types
.
Transaction
,
hexPrivKey
string
)
(
*
types
.
Transaction
,
error
)
{
signType
:=
types
.
SECP256K1
signType
:=
types
.
SECP256K1
c
,
err
:=
crypto
.
New
(
types
.
GetSignName
(
pty
.
EvmxgoX
,
signType
)
)
c
,
err
:=
crypto
.
Load
(
types
.
GetSignName
(
pty
.
EvmxgoX
,
signType
),
-
1
)
if
err
!=
nil
{
if
err
!=
nil
{
return
tx
,
err
return
tx
,
err
}
}
...
...
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