From c4fd3b3ab82c46c8ec6f0df34c9930b779babd8d Mon Sep 17 00:00:00 2001 From: Sebastian Gerske <13647606+H34D@users.noreply.github.com> Date: Mon, 12 Jun 2023 19:12:13 +0200 Subject: [PATCH] display swap router --- src/commands/sbt/info.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/commands/sbt/info.ts b/src/commands/sbt/info.ts index 59b3073..3051395 100644 --- a/src/commands/sbt/info.ts +++ b/src/commands/sbt/info.ts @@ -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()}'`); @@ -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(