Skip to content

Commit

Permalink
Update test/e2e/src/test-swap.js
Browse files Browse the repository at this point in the history
clean up nested awaits

Co-authored-by: Chad Ostrowski <[email protected]>
  • Loading branch information
BlaineHeffron and chadoh committed Jun 3, 2024
1 parent c7e1c45 commit 8bed9f4
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions test/e2e/src/test-swap.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,12 @@ describe("Swap Contract Tests", function () {
await tokenA.mint({ amount: amountAToSwap, to: alice.publicKey() })
).signAndSend();

await (
await tokenB.initialize({
admin: root.publicKey(),
decimal: 0,
name: "Token B",
symbol: "B",
})
).signAndSend();
await tokenB.initialize({
admin: root.publicKey(),
decimal: 0,
name: "Token B",
symbol: "B",
}).then(t => t.signAndSend());
await (
await tokenB.mint({ amount: amountBToSwap, to: bob.publicKey() })
).signAndSend();
Expand Down

0 comments on commit 8bed9f4

Please sign in to comment.