Skip to content

Commit

Permalink
fix: logging
Browse files Browse the repository at this point in the history
  • Loading branch information
H34D committed Nov 24, 2023
1 parent cb5aae9 commit 5888656
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
11 changes: 10 additions & 1 deletion src/modules/identity/create.ts
Expand Up @@ -23,7 +23,12 @@ export const purchaseIdentity = async (
};

const { wait, hash } = await masa.contracts.identity.purchase();
console.log(Messages.WaitingToFinalize(hash));
console.log(
Messages.WaitingToFinalize(
hash,
masa.config.network?.blockExplorerUrls?.[0],
),
);

const { logs } = await wait();
const parsedLogs = masa.contracts.parseLogs(logs);
Expand Down Expand Up @@ -268,6 +273,10 @@ export const createIdentityWithSoulName = async (
return result;
}

if (masa.config.verbose) {
console.info("Purchasing Identity with Soulname");
}

return await purchaseIdentityWithSoulName(
masa,
soulName,
Expand Down
7 changes: 6 additions & 1 deletion src/modules/sbt/SSSBT/deploy.ts
Expand Up @@ -111,7 +111,12 @@ export const deploySSSBT = async ({
...deploySSSBTArguments,
)) as ReferenceSBTSelfSovereign;

console.log(Messages.WaitingToFinalize(hash));
console.log(
Messages.WaitingToFinalize(
hash,
masa.config.network?.blockExplorerUrls?.[0],
),
);

await wait();

Expand Down
4 changes: 4 additions & 0 deletions src/modules/soul-name/create.ts
Expand Up @@ -160,6 +160,10 @@ export const createSoulName = async (
return result;
}

if (masa.config.verbose) {
console.info("Purchasing Soulname");
}

return await purchaseSoulName(
masa,
paymentMethod,
Expand Down

0 comments on commit 5888656

Please sign in to comment.