Commit 8026f4a8 authored by duanjinfei's avatar duanjinfei

add get acc balance key

parent 6b67abbf
......@@ -19,7 +19,8 @@
"startTokenId": 1,
"endTokenId": 100,
"accStartIndex": 0,
"sendTranAfterSleep": 60,
"sendTranAfterSleep": 120,
"isGetAccBalance": false,
"transferType": []
}
......
......@@ -48,5 +48,7 @@ func main() {
}
}
util.GetAccountBalance(tool.Cfg.RpcNode)
if tool.Cfg.IsGetAccBalance {
util.GetAccountBalance(tool.Cfg.RpcNode)
}
}
......@@ -650,6 +650,7 @@ func NrOneErc721TranCase(startIndex int, txCount int, testAccArr *tool.AccArrFor
return nil, nil
}
log.Info("Erc721OneTransferFromSignTx tx:", tx.Hash().Hex())
startIndex++
resTxArr = append(resTxArr, tx)
}
verify := func() bool {
......
......@@ -410,7 +410,7 @@ func GetTranFunc(caseType int, startIndex int, txCount int, nonceMap *sync.Map,
// 部分相关-合约转账-发送者相关-不同账户调用同一个合约给不同的账户进行转账
case 15:
{
return PrSpContractCoinTranCase(txCount, arr, contractArr[0], nonceMap, txArr, client)
return PrSpContractCoinTranCase(txCount, arr, contractArr[3], nonceMap, txArr, client)
}
// 部分相关-合约转账-发送者接受者相关
case 16:
......
......@@ -29,6 +29,7 @@ type ConfigJson struct {
IsInitErc721 bool `json:"isInitErc721"`
AccStartIndex int `json:"accStartIndex"`
SendTranAfterSleep int `json:"sendTranAfterSleep"`
IsGetAccBalance bool `json:"isGetAccBalance"`
}
type Config struct {
......@@ -48,6 +49,7 @@ type Config struct {
ContractMap []map[string]common.Address
AccStartIndex int
SendTranAfterSleep int
IsGetAccBalance bool
}
type AccArr struct {
......@@ -114,6 +116,7 @@ func ParseConfig(path string) {
ContractMap: ParseContractConfig("./config/contractConfig.json"),
AccStartIndex: cfgJson.AccStartIndex,
SendTranAfterSleep: cfgJson.SendTranAfterSleep,
IsGetAccBalance: cfgJson.IsGetAccBalance,
}
}
......
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