Commit 48656f35 authored by duanjinfei's avatar duanjinfei

add erc721 test case log

parent f43cd835
......@@ -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)
}
......
......@@ -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("0x1df7a8d79fc3419484fa3e5e72fa801f917ba7133e4bf324786fa9727a920319"))
receipt, err := client.TransactionReceipt(context.Background(), common.HexToHash("0x478828957ad9314d1d11e36d0a94142b89df6c74d4688d396a06953fdaa998c5"))
if err != nil {
log.Fatal("Get receipt error:", err.Error())
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment