Open ok1d opened 5 months ago
you can wrapper it for youself, here is a demo
` for { select { case <-ctx.Done(): return ctx.Err() case <-time.Tick(maxWaitTime): return errors.New("wait transaction confirm timeout") default: getSeqno, err := client.GetSeqno(ctx, accountID) switch { case errors.Is(err, liteapi.ErrAccountNotFound): getSeqno = 0 case err != nil: return err }
if int64(getSeqno) > seqno {
return nil
}
time.Sleep(1 * time.Second)
}
}`
user_agreement.pdf Holla #
Holla way hurry
Holla
func (w *Wallet) RawSendV2(
should be