Skip to content

Commit

Permalink
fix(addAssetToVault): dangling promises
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed May 26, 2022
1 parent 611a7d3 commit d37dd78
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/run-protocol/src/proposals/addAssetToVault.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ export const publishInterchainAssetFromBoardId = async (
const issuer = await E(board).getValue(issuerBoardId);
const brand = await E(issuer).getBrand();

E(E(agoricNamesAdmin).lookupAdmin('issuer')).update(keyword, issuer);
E(E(agoricNamesAdmin).lookupAdmin('brand')).update(keyword, brand);
return Promise.all([
E(E(agoricNamesAdmin).lookupAdmin('issuer')).update(keyword, issuer),
E(E(agoricNamesAdmin).lookupAdmin('brand')).update(keyword, brand),
]);
};

const addPool = async (
Expand Down

0 comments on commit d37dd78

Please sign in to comment.