Skip to content

Commit 03475b4

Browse files
committed
fix: await sender registration in multiple pxe script
1 parent b15af1b commit 03475b4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/multiple_pxe.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async function main() {
7474

7575
// setup account on 2nd pxe
7676

77-
pxe2.registerSender(ownerAddress)
77+
await pxe2.registerSender(ownerAddress)
7878

7979
let secretKey2 = Fr.random();
8080
let salt2 = Fr.random();
@@ -83,7 +83,7 @@ async function main() {
8383
// deploy account on 2nd pxe
8484
let tx2 = await schnorrAccount2.deploy({ fee: { paymentMethod } }).wait();
8585
let wallet2 = await schnorrAccount2.getWallet();
86-
wallet2.registerSender(ownerAddress)
86+
await wallet2.registerSender(ownerAddress)
8787

8888
// mint to account on 2nd pxe
8989

0 commit comments

Comments
 (0)