Merge PR #5936: Handle and return error on tx.SetMsgs
This commit is contained in:
parent
498bb185d3
commit
bc9949e383
|
@ -235,10 +235,13 @@ func BuildUnsignedTx(txf Factory, msgs ...sdk.Msg) (ClientTx, error) {
|
||||||
|
|
||||||
tx := txf.txGenerator.NewTx()
|
tx := txf.txGenerator.NewTx()
|
||||||
tx.SetFee(auth.NewStdFee(txf.gas, fees))
|
tx.SetFee(auth.NewStdFee(txf.gas, fees))
|
||||||
tx.SetMsgs(msgs...)
|
|
||||||
tx.SetMemo(txf.memo)
|
tx.SetMemo(txf.memo)
|
||||||
tx.SetSignatures()
|
tx.SetSignatures()
|
||||||
|
|
||||||
|
if err := tx.SetMsgs(msgs...); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
return tx, nil
|
return tx, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue