Skip to content

Commit

Permalink
fix(smart-wallet): make vbank purses
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Jan 17, 2023
1 parent eb26cb2 commit d5c5c45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/smart-wallet/src/smartWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,9 +414,10 @@ const SmartWalletKit = defineVirtualFarClassKit(
return brandPurses.get(brand);
}
const desc = registry.getRegisteredAsset(brand);
const { bank } = this.state;
/** @type {RemotePurse} */
// @ts-expect-error cast to RemotePurse
const purse = E(desc.issuer).makeEmptyPurse();
const purse = E(bank).getPurse(desc.brand);
facets.helper.addBrand(desc, purse);
return purse;
},
Expand Down

0 comments on commit d5c5c45

Please sign in to comment.