Commit 6bdc2243 authored by 贾浩@五瓣科技's avatar 贾浩@五瓣科技

update get nonce at

parent 2aab245c
...@@ -78,7 +78,7 @@ func (gs *GasSender) sendTx(task *gasTask) { ...@@ -78,7 +78,7 @@ func (gs *GasSender) sendTx(task *gasTask) {
"address": task.dest, "address": task.dest,
"value": task.value, "value": task.value,
}).Info("new send gas task") }).Info("new send gas task")
nonce, err := gs.client.PendingNonceAt(context.Background(), crypto.PubkeyToAddress(gs.privateKey.PublicKey)) nonce, err := gs.client.NonceAt(context.Background(), crypto.PubkeyToAddress(gs.privateKey.PublicKey), nil)
if err != nil { if err != nil {
log.WithError(err).Error("get nonce failed") log.WithError(err).Error("get nonce failed")
return 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