Skip to content

Commit

Permalink
add log with Compose dst chain tx
Browse files Browse the repository at this point in the history
  • Loading branch information
rain-zxn committed Nov 11, 2022
1 parent ecfb27a commit f09b7e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wallet/eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (w *EthWallet) SendWithAccount(account accounts.Account, addr common.Addres
nonces.Update(false)
return "", fmt.Errorf("Sign tx error %v", err)
}
log.Info("Compose dst chain tx", "hash", tx.Hash(), "account", account.Address)
log.Info("Compose dst chain tx", "hash", tx.Hash(), "account", account.Address, "nonce", tx.Nonce(), "limit", tx.Gas(), "gasPrice", tx.GasPrice())
err = w.sdk.Node().SendTransaction(context.Background(), tx)
//TODO: Check err here before update nonces
nonces.Update(true)
Expand Down
4 changes: 2 additions & 2 deletions wallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func (w *Wallet) sendWithAccount(dry bool, account accounts.Account, addr common
err = fmt.Errorf("Sign tx error %v", err)
return
}
log.Info("Compose dst chain tx", "hash", tx.Hash(), "account", account.Address)
log.Info("Compose dst chain tx", "hash", tx.Hash(), "account", account.Address, "nonce", tx.Nonce(), "limit", tx.Gas(), "gasPrice", tx.GasPrice())
err = w.sdk.Node().SendTransaction(context.Background(), tx)
//TODO: Check err here before update nonces
nonces.Update(true)
Expand Down Expand Up @@ -363,7 +363,7 @@ func (w *Wallet) SendWithMaxLimit(chainId uint64, account accounts.Account, addr
err = fmt.Errorf("Sign tx error %v", err)
return
}
log.Info("Compose dst chain tx", "hash", tx.Hash(), "account", account.Address)
log.Info("Compose dst chain tx", "hash", tx.Hash(), "account", account.Address, "nonce", tx.Nonce(), "limit", tx.Gas(), "gasPrice", tx.GasPrice())
err = w.sdk.Node().SendTransaction(context.Background(), tx)
//TODO: Check err here before update nonces
nonces.Update(true)
Expand Down

0 comments on commit f09b7e0

Please sign in to comment.