Skip to content

Commit

Permalink
chore: work around provisionPool issuerName/keyword conflation
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Aug 22, 2023
1 parent 38edd99 commit e6b0ab8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/inter-protocol/src/proposals/addAssetToVault.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ export const publishInterchainAssetFromBank = async (
await Promise.all([
E(E(agoricNamesAdmin).lookupAdmin('issuer')).update(issuerName, issuer),
E(E(agoricNamesAdmin).lookupAdmin('brand')).update(issuerName, brand),
E(bankManager).addAsset(denom, issuerName, proposedName, kit),
// The provisionPool uses the vbank issuerName as a keyword in
// a call to zcf.saveIssuer(). So to satisfy the initial-uppercase
// constraint, use a keyword as the issuerName in the vbank registry.
E(bankManager).addAsset(denom, keyword, proposedName, kit),
]);
};

Expand Down

0 comments on commit e6b0ab8

Please sign in to comment.