MCPcopy Create free account
hub / github.com/PolymathNetwork/polymath-core / balanceOf

Function balanceOf

test/o_security_token.js:1347–1353  ·  view source on GitHub ↗
(account)

Source from the content-addressed store, hash-verified

1345 });
1346
1347 async function balanceOf(account) {
1348 console.log(`
1349 ${account} total balance: ${web3.utils.fromWei(await I_SecurityToken.balanceOf(account))}
1350 ${account} Locked balance: ${web3.utils.fromWei(await I_SecurityToken.balanceOfByPartition(web3.utils.toHex("LOCKED"), account))}
1351 ${account} Unlocked balance: ${web3.utils.fromWei(await I_SecurityToken.balanceOfByPartition(web3.utils.toHex("UNLOCKED"), account))}
1352 `);
1353 }
1354
1355 describe("Test cases for the partition functions -- ERC1410", async() => {
1356

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected