Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Commit

Permalink
fix: resolve timer service before instantiating contract
Browse files Browse the repository at this point in the history
  • Loading branch information
samsiegart committed Mar 29, 2022
1 parent f529e89 commit 52110fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default async function deployApi(homePromise, { pathResolve }) {
// Unpack the references.
const {
// *** ON-CHAIN REFERENCES ***
chainTimerService,
chainTimerService: chainTimerServiceP,

// Zoe lives on-chain and is shared by everyone who has access to
// the chain. In this demo, that's just you, but on our testnet,
Expand Down Expand Up @@ -107,6 +107,7 @@ export default async function deployApi(homePromise, { pathResolve }) {
PRICE_PER_CARD_IN_MONEY_UNITS * 10n ** BigInt(decimalPlaces);
const minBidPerCard = AmountMath.make(moneyBrand, moneyValue);

const chainTimerService = await chainTimerServiceP;
const {
// TODO: implement exiting the creatorSeat and taking the earnings
auctionItemsPublicFacet: publicFacet,
Expand Down

0 comments on commit 52110fa

Please sign in to comment.