Commit e6974fbb authored by duanjinfei's avatar duanjinfei

add case log

parent 75478c00
......@@ -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 {
......
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