Skip to content

Commit

Permalink
remove log message
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Nov 15, 2024
1 parent 24758b5 commit 416d339
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/adapters/peggedAssets/helper/aptos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export async function getTotalSupply(account: string, type?: string) {
export async function getTokenSupply(token: string) {
const { data } = await axios.get(`${endpoint}/v1/accounts/${token}/resources`);
const coinInfo = data.find((coin: any) => coin.type.startsWith('0x1::coin::CoinInfo'));
console.log(JSON.stringify(data ), coinInfo)

return coinInfo.data.supply.vec[0].integer.vec[0].value / 10 ** coinInfo.data.decimals;
}

0 comments on commit 416d339

Please sign in to comment.