can specify different account
This commit is contained in:
parent
a4fcf451f5
commit
363d783f42
|
@ -12,8 +12,10 @@ module.exports = async (callback) => {
|
||||||
|
|
||||||
const [account,] = await web3.eth.getAccounts();
|
const [account,] = await web3.eth.getAccounts();
|
||||||
|
|
||||||
const wrappedBalance1 = await wrapper.balanceOf(account, nftId1);
|
const whom = process.argv[7] ? process.argv[7] : account;
|
||||||
const tokenBalance1 = await tokenContract1.balanceOf(account);
|
|
||||||
|
const wrappedBalance1 = await wrapper.balanceOf(whom, nftId1);
|
||||||
|
const tokenBalance1 = await tokenContract1.balanceOf(whom);
|
||||||
console.log(`Wrapped: ${wrappedBalance1}`);
|
console.log(`Wrapped: ${wrappedBalance1}`);
|
||||||
console.log(`Unwrapped: ${tokenBalance1}`);
|
console.log(`Unwrapped: ${tokenBalance1}`);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue