Merge PR #5936: Handle and return error on tx.SetMsgs

This commit is contained in:
Alexander Bezobchuk 2020-04-06 10:24:40 -04:00 committed by GitHub
parent 498bb185d3
commit bc9949e383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -235,10 +235,13 @@ func BuildUnsignedTx(txf Factory, msgs ...sdk.Msg) (ClientTx, error) {
tx := txf.txGenerator.NewTx()
tx.SetFee(auth.NewStdFee(txf.gas, fees))
tx.SetMsgs(msgs...)
tx.SetMemo(txf.memo)
tx.SetSignatures()
if err := tx.SetMsgs(msgs...); err != nil {
return nil, err
}
return tx, nil
}