Skip to content

Commit

Permalink
display swap router
Browse files Browse the repository at this point in the history
  • Loading branch information
H34D committed Jun 12, 2023
1 parent e10d9a1 commit c4fd3b3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/commands/sbt/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const info = async (address: string) => {

if (contract) {
const supply = (await contract.totalSupply()).toNumber();
console.log("Self Sovereign SBT Contract Information:\n");
console.log("Soulbound Token Contract Information:\n");
console.log(`Network: '${masa.config.networkName}'`);
console.log(`Contract Name: '${await contract.name()}'`);
console.log(`Contract Symbol: '${await contract.symbol()}'`);
Expand All @@ -17,6 +17,14 @@ export const info = async (address: string) => {
}
}
console.log(`Contract Address: '${contract.address}'`);
if (masa.config.verbose) {
try {
console.log(`Contract Swap Router: '${await contract.swapRouter()}'`);
} catch {
// ignore
}
}

console.log(`Total SBTs: ${supply}`);
} else {
console.error(
Expand Down

0 comments on commit c4fd3b3

Please sign in to comment.