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
48656f35
Commit
48656f35
authored
May 24, 2023
by
duanjinfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add erc721 test case log
parent
f43cd835
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
partlyRelatedCase.go
operator/partlyRelatedCase.go
+1
-0
contract_test.go
test/contract_test.go
+2
-2
No files found.
operator/partlyRelatedCase.go
View file @
48656f35
...
...
@@ -1293,6 +1293,7 @@ func PrReErc721TranFromCase(startIndex int, txCount int, testAccArr *tool.AccArr
log
.
Error
(
"Get tokenID owner failed"
)
return
nil
,
nil
}
log
.
Info
(
erc721Trade
.
FromAddr
.
Hex
(),
" "
,
owner
.
Hex
())
if
erc721Trade
.
FromAddr
.
Hex
()
!=
owner
.
Hex
()
{
log
.
Error
(
"TokenID:"
,
startIndex
,
" ,is not belong to:"
,
erc721Trade
.
FromAddr
)
}
...
...
test/contract_test.go
View file @
48656f35
...
...
@@ -14,7 +14,7 @@ import (
func
TestGetContractAbi
(
t
*
testing
.
T
)
{
// 连接以太坊网络
client
,
err
:=
ethclient
.
Dial
(
"http://
192.168.1.112
:50000"
)
client
,
err
:=
ethclient
.
Dial
(
"http://
54.72.101.87
:50000"
)
if
err
!=
nil
{
log
.
Fatal
(
err
)
}
...
...
@@ -41,7 +41,7 @@ func TestGetContractAbi(t *testing.T) {
}
log
.
Info
(
"balance:"
,
balance
.
String
())
receipt
,
err
:=
client
.
TransactionReceipt
(
context
.
Background
(),
common
.
HexToHash
(
"0x
1df7a8d79fc3419484fa3e5e72fa801f917ba7133e4bf324786fa9727a920319
"
))
receipt
,
err
:=
client
.
TransactionReceipt
(
context
.
Background
(),
common
.
HexToHash
(
"0x
478828957ad9314d1d11e36d0a94142b89df6c74d4688d396a06953fdaa998c5
"
))
if
err
!=
nil
{
log
.
Fatal
(
"Get receipt error:"
,
err
.
Error
())
return
...
...
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