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

fix: resolve timer service before instantiating contract #51

Merged
merged 1 commit into from
Mar 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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