Skip to content

Commit

Permalink
Wait for promise to resolve when creating multi message (#3176)
Browse files Browse the repository at this point in the history
* Wait for promise to resolve when creating multi message

* changelog
  • Loading branch information
colw authored and faboweb committed Nov 21, 2019
1 parent aa74f6c commit 71c2852
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/colw_fix-withdrawal-empty-message
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Fixed] [#3176](https://github.com/cosmos/lunie/pull/3176) Withdrawal was not working as message was empty @colw
2 changes: 1 addition & 1 deletion src/ActionModal/utils/ActionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default class ActionManager {

// Withdrawing is a multi message for all validators you have bonds with
async createMultiMessage(messageType, { validatorAddresses }) {
const messages = Promise.all(
const messages = await Promise.all(
validatorAddresses.map(validatorAddress =>
getMessage(
messageType,
Expand Down

0 comments on commit 71c2852

Please sign in to comment.