Skip to content

Commit

Permalink
Merge pull request #6833 from Agoric/ta/fix-smartWallet-purse
Browse files Browse the repository at this point in the history
fix smartWallet purse creation from vbank
  • Loading branch information
mergify[bot] authored Jan 24, 2023
2 parents e3a7775 + 7584b80 commit aa8e813
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/agoric-cli/test/agops-vaults-smoketest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jq ".body | fromjson" <"$OFFER"
agoric wallet send --keyring-backend="test" --from "$WALLET" --offer "$OFFER"

# list my vaults
bin/agops vaults list --from dev-wallet
bin/agops vaults list --keyring-backend="test" --from "$WALLET"
4 changes: 2 additions & 2 deletions packages/smart-wallet/src/smartWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,8 @@ const SmartWalletKit = defineVirtualExoClassKit(
// Schedule creation of a purse for each registered brand.
state.registry.getRegisteredBrands().forEach(desc => {
// In this sync method, we can't await the outcome.
void E(desc.issuer)
.makeEmptyPurse()
void E(state.bank)
.getPurse(desc.brand)
// @ts-expect-error cast
.then((/** @type {RemotePurse} */ purse) =>
helper.addBrand(desc, purse),
Expand Down

0 comments on commit aa8e813

Please sign in to comment.