Skip to content

Commit

Permalink
feat(wallet-backend): attach timestamp and sequence metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Sep 23, 2021
1 parent 089c876 commit 9e02962
Show file tree
Hide file tree
Showing 5 changed files with 138 additions and 85 deletions.
3 changes: 2 additions & 1 deletion packages/dapp-svelte-wallet/api/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default async function deployWallet(
faucet,
zoe,
},
local: { http, spawner, wallet: oldWallet, scratch },
local: { http, localTimerService, spawner, wallet: oldWallet, scratch },
} = home;

let walletVat = await E(scratch).get('dapp-svelte-wallet/api');
Expand All @@ -43,6 +43,7 @@ export default async function deployWallet(
myAddressNameAdmin,
zoe,
board,
localTimerService,
});
}

Expand Down
3 changes: 2 additions & 1 deletion packages/dapp-svelte-wallet/api/src/issuerTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const makeIssuerTable = () => {
getByIssuer: issuerToIssuerRecord.get,
// `issuerP` may be a promise, presence, or local object. If there's
// already a record, return it. Otherwise, save the record.
initIssuer: async issuerP => {
initIssuer: async (issuerP, now = undefined) => {
const brandP = E(issuerP).getBrand();
const brandIssuerMatchP = E(brandP).isMyIssuer(issuerP);
const displayInfoP = E(brandP).getDisplayInfo();
Expand All @@ -55,6 +55,7 @@ const makeIssuerTable = () => {
`issuer was using a brand which was not its own`,
);
issuerTable.initIssuerByRecord({
creationStamp: now,
brand,
issuer,
assetKind: displayInfo.assetKind,
Expand Down
Loading

0 comments on commit 9e02962

Please sign in to comment.