rigel: Handle auto-sequence when nonce=0
This commit is contained in:
parent
a12d866ed1
commit
737e3740dd
|
@ -47,7 +47,8 @@ func doNonceQuery(signers []basecoin.Actor) (sequence uint32, proof lc.Proof, er
|
|||
|
||||
proof, err = proofcmd.GetAndParseAppProof(key, &sequence)
|
||||
if lc.IsNoDataErr(err) {
|
||||
err = errors.Errorf("Sequence is empty for key %s ", key)
|
||||
// no data, return sequence 0
|
||||
return 0, proof, nil
|
||||
}
|
||||
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue