Skip to content

Commit 456e464

Browse files
committed
fix: remove unnecessary await from getAddress call and streamline balance check
1 parent 81e8840 commit 456e464

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/multiple_pxe.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ async function main() {
6969
let schnorrAccount = await getSchnorrAccount(pxe1, secretKey, deriveSigningKey(secretKey), salt);
7070
let tx = await schnorrAccount.deploy({ fee: { paymentMethod } }).wait();
7171
let ownerWallet = await schnorrAccount.getWallet();
72-
let ownerAddress = await ownerWallet.getAddress();
72+
let ownerAddress = ownerWallet.getAddress();
7373
const token = await TokenContract.deploy(ownerWallet, ownerAddress, 'Clean USDC', 'USDC', 6).send({ contractAddressSalt: L2_TOKEN_CONTRACT_SALT, fee: { paymentMethod } }).wait()
7474

7575
// setup account on 2nd pxe
@@ -114,7 +114,7 @@ async function main() {
114114
const balance = await l2TokenContract.methods.balance_of_private(wallet2.getAddress()).simulate()
115115
console.log("private balance should be 100", balance)
116116
// errors
117-
const public_balance = await l2TokenContract.methods.balance_of_public(wallet2.getAddress()).simulate()
117+
await l2TokenContract.methods.balance_of_public(wallet2.getAddress()).simulate()
118118

119119
}
120120

0 commit comments

Comments
 (0)