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
3a3bd5dc
Commit
3a3bd5dc
authored
May 10, 2023
by
duanjinfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add verify error logs
parent
50522bc1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
noRelatedCase.go
operator/noRelatedCase.go
+2
-0
contract_util.go
util/contract_util.go
+3
-2
No files found.
operator/noRelatedCase.go
View file @
3a3bd5dc
...
...
@@ -60,6 +60,8 @@ func NrCoinTranCase(txCount int, testAccArr *tool.AccArrFormat, accountNonceMap
}
subBal
:=
sendBeforeBal
[
fromAddr
]
.
Sub
(
sendBeforeBal
[
fromAddr
],
sendAfterBal
)
if
subBal
.
Cmp
(
amount
)
!=
1
{
log
.
Error
(
"sendBeforeBal[fromAddr]:"
,
sendBeforeBal
[
fromAddr
])
log
.
Error
(
"sendAfterBal:"
,
sendAfterBal
)
return
false
}
}
...
...
util/contract_util.go
View file @
3a3bd5dc
...
...
@@ -50,8 +50,9 @@ func GetTxReceipt(client *ethclient.Client, txArr []*types.Transaction) {
log
.
Error
(
"Get tran receipt err:"
,
err
)
return
}
if
receipt
.
Status
==
0
{
log
.
Error
(
"Receipt:"
,
receipt
)
if
receipt
.
Status
==
0
||
receipt
.
GasUsed
==
0
{
log
.
Error
(
"tx value:"
,
tx
.
Value
())
log
.
Error
(
"Receipt Tx Hash:"
,
receipt
.
TxHash
)
}
else
{
log
.
Infof
(
"Receipt: status: %d,gasUsed: %d"
,
receipt
.
Status
,
receipt
.
GasUsed
)
}
...
...
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