Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
contract-case
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
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
duanjinfei
contract-case
Commits
e6974fbb
Commit
e6974fbb
authored
Jun 01, 2023
by
duanjinfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add case log
parent
75478c00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
noRelatedCase.go
operator/noRelatedCase.go
+7
-0
No files found.
operator/noRelatedCase.go
View file @
e6974fbb
...
...
@@ -54,6 +54,7 @@ func NrCoinTranCase(txCount int, testAccArr *tool.AccArrFormat, accountNonceMap
log
.
Error
(
"constructor coin transfer tx err:"
,
err
.
Error
())
continue
}
log
.
Info
(
"普通转账-Tx:"
,
tx
.
Hash
())
resTxArr
=
append
(
resTxArr
,
tx
)
}
verify
:=
func
()
bool
{
...
...
@@ -135,6 +136,7 @@ func NrContractCoinTranCase(txCount int, testAccArr *tool.AccArrFormat, contract
if
err
!=
nil
{
return
nil
,
nil
}
log
.
Info
(
"单层-调用合约转账-Tx:"
,
tx
.
Hash
())
resTxArr
=
append
(
resTxArr
,
tx
)
}
verify
:=
func
()
bool
{
...
...
@@ -224,6 +226,7 @@ func NrContractOneCoinTranCase(txCount int, testAccArr *tool.AccArrFormat, contr
log
.
Error
(
"OneTransferSignTx error:"
,
err
.
Error
())
return
nil
,
nil
}
log
.
Info
(
"多层-调用合约转账-Tx:"
,
tx
.
Hash
())
resTxArr
=
append
(
resTxArr
,
tx
)
}
verify
:=
func
()
bool
{
...
...
@@ -295,6 +298,7 @@ func NrWRTranCase(testAccArr *tool.AccArrFormat, contractMap map[string]common.A
for
i
:=
0
;
i
<
len
(
funcStr
);
i
++
{
value
,
_
:=
accountNonceMap
.
Load
(
testAccArr
.
FromAddr
[
i
])
tx
:=
util
.
ReadWriteCase
(
testAccArr
.
FromPrv
[
i
],
funcStr
[
i
],
big
.
NewInt
(
value
.
(
int64
)),
readWriteTrade
,
readWriteVar
)
log
.
Info
(
"单层-写变量-Tx:"
,
tx
.
Hash
())
resTxArr
=
append
(
resTxArr
,
tx
)
}
verify
:=
func
()
bool
{
...
...
@@ -344,6 +348,7 @@ func NrOneWRTranCase(testAccArr *tool.AccArrFormat, contractMap map[string]commo
for
i
:=
0
;
i
<
len
(
funcStr
);
i
++
{
value
,
_
:=
accountNonceMap
.
Load
(
testAccArr
.
FromAddr
[
i
])
tx
:=
util
.
OneReadWriteCase
(
testAccArr
.
FromPrv
[
i
],
funcStr
[
i
],
big
.
NewInt
(
value
.
(
int64
)),
readWriteTrade
,
*
readWriteVar
)
log
.
Info
(
"多层-写变量-Tx:"
,
tx
.
Hash
())
resTxArr
=
append
(
resTxArr
,
tx
)
}
verify
:=
func
()
bool
{
...
...
@@ -409,6 +414,7 @@ func NrErc20TranCase(txCount int, testAccArr *tool.AccArrFormat, contractMap map
log
.
Error
(
"Erc20TransferSignTx error:"
,
err
.
Error
())
return
nil
,
nil
}
log
.
Info
(
"单层-Erc20转账-Tx:"
,
tx
.
Hash
())
resTxArr
=
append
(
resTxArr
,
tx
)
erc20Trade
.
FromAddr
=
testAccArr
.
FromAddr
[
i
]
auth
.
Nonce
=
auth
.
Nonce
.
Add
(
auth
.
Nonce
,
big
.
NewInt
(
1
))
...
...
@@ -417,6 +423,7 @@ func NrErc20TranCase(txCount int, testAccArr *tool.AccArrFormat, contractMap map
log
.
Error
(
"Erc20TransferFromSignTx error:"
,
err
.
Error
())
return
nil
,
nil
}
log
.
Info
(
"单层-Erc20转账-Tx:"
,
tx
.
Hash
())
resTxArr
=
append
(
resTxArr
,
tx
)
}
verify
:=
func
()
bool
{
...
...
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