[staking] Print TX hash on failure

pull/216/head
Janet Liang 5 years ago
parent 1fa1722986
commit 64a39e9e42
  1. 1
      cmd/subcommands/staking.go

@ -161,6 +161,7 @@ func handleStakingTransaction(
r, _ := reply["result"].(string)
if timeout > 0 {
if err := confirmTx(networkHandler, timeout, r); err != nil {
fmt.Println(fmt.Sprintf(`{"transaction-hash":"%s"}`, r))
return err
}
} else {

Loading…
Cancel
Save