(cmd *Command)
| 109 | } |
| 110 | |
| 111 | func addWaitFlag(cmd *Command) { |
| 112 | cmd.Flag.BoolVar(&waitTxConfirmation, "wait-tx-confirm", false, "Wait for transaction confirmation") |
| 113 | } |
| 114 | |
| 115 | func wait(txHash hash.Hash) (err error) { |
| 116 | var ctx, cancel = context.WithTimeout(context.Background(), waitTxConfirmationMaxDuration) |