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
f0b3f991
Commit
f0b3f991
authored
May 24, 2023
by
duanjinfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix erc721 test case
parent
84853c5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
partlyRelatedCase.go
operator/partlyRelatedCase.go
+1
-1
No files found.
operator/partlyRelatedCase.go
View file @
f0b3f991
...
@@ -1279,7 +1279,6 @@ func PrReErc721TranFromCase(startIndex int, txCount int, testAccArr *tool.AccArr
...
@@ -1279,7 +1279,6 @@ func PrReErc721TranFromCase(startIndex int, txCount int, testAccArr *tool.AccArr
}
}
value
,
_
:=
accountNonceMap
.
Load
(
fromAddr
)
value
,
_
:=
accountNonceMap
.
Load
(
fromAddr
)
nonce
:=
value
.
(
int64
)
nonce
:=
value
.
(
int64
)
auth
.
Nonce
=
big
.
NewInt
(
nonce
)
for
i
:=
0
;
i
<
txCount
;
i
++
{
for
i
:=
0
;
i
<
txCount
;
i
++
{
toAddr
:=
testAccArr
.
FromAddr
[
i
]
toAddr
:=
testAccArr
.
FromAddr
[
i
]
erc721Trade
.
ToAddr
=
toAddr
erc721Trade
.
ToAddr
=
toAddr
...
@@ -1292,6 +1291,7 @@ func PrReErc721TranFromCase(startIndex int, txCount int, testAccArr *tool.AccArr
...
@@ -1292,6 +1291,7 @@ func PrReErc721TranFromCase(startIndex int, txCount int, testAccArr *tool.AccArr
beforeToErc721Bal
[
toAddr
]
=
toErc721Bal
beforeToErc721Bal
[
toAddr
]
=
toErc721Bal
erc721Trade
.
FromAddr
=
fromAddr
erc721Trade
.
FromAddr
=
fromAddr
erc721Trade
.
TokenId
=
big
.
NewInt
(
int64
(
startIndex
))
erc721Trade
.
TokenId
=
big
.
NewInt
(
int64
(
startIndex
))
auth
.
Nonce
=
big
.
NewInt
(
nonce
)
auth
.
NoSend
=
true
auth
.
NoSend
=
true
auth
.
GasLimit
=
500000
auth
.
GasLimit
=
500000
auth
.
GasPrice
=
big
.
NewInt
(
10000000000
)
auth
.
GasPrice
=
big
.
NewInt
(
10000000000
)
...
...
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