From b8cc79f88d952f1eb00d87c5c1f3b8f17344fea9 Mon Sep 17 00:00:00 2001 From: Jawad Tariq Date: Thu, 15 Feb 2024 17:01:16 -0500 Subject: [PATCH] fix: remove unnecessary await Signed-off-by: Jawad Tariq --- test/topos-core/ToposMessaging.test.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/test/topos-core/ToposMessaging.test.ts b/test/topos-core/ToposMessaging.test.ts index 64dfc18..a12442c 100644 --- a/test/topos-core/ToposMessaging.test.ts +++ b/test/topos-core/ToposMessaging.test.ts @@ -82,10 +82,7 @@ describe('ToposMessaging', () => { await toposCoreProxy.waitForDeployment() const toposCoreProxyAddress = await toposCoreProxy.getAddress() - const toposCore = await ToposCore__factory.connect( - toposCoreProxyAddress, - admin - ) + const toposCore = ToposCore__factory.connect(toposCoreProxyAddress, admin) await toposCore.initialize(adminAddresses, adminThreshold) const erc20Messaging = await new ERC20Messaging__factory(admin).deploy( @@ -214,7 +211,7 @@ describe('ToposMessaging', () => { (l) => (l as EventLog).eventName === 'TokenDeployed' ) as EventLog const tokenAddress = log.args.tokenAddress - const erc20 = await ERC20__factory.connect(tokenAddress, admin) + const erc20 = ERC20__factory.connect(tokenAddress, admin) await erc20.approve(erc20MessagingAddress, tc.SEND_AMOUNT_50) const sendToken = await sendTokenTx( @@ -499,7 +496,7 @@ describe('ToposMessaging', () => { const deployedToken = await erc20Messaging.getTokenBySymbol( tc.TOKEN_SYMBOL_X ) - const erc20 = await ERC20__factory.connect(deployedToken.addr, admin) + const erc20 = ERC20__factory.connect(deployedToken.addr, admin) await erc20.approve(erc20MessagingAddress, tc.SEND_AMOUNT_50) const sendToken = await sendTokenTx( @@ -549,7 +546,7 @@ describe('ToposMessaging', () => { const deployedToken = await erc20Messaging.getTokenBySymbol( tc.TOKEN_SYMBOL_X ) - const erc20 = await ERC20__factory.connect(deployedToken.addr, admin) + const erc20 = ERC20__factory.connect(deployedToken.addr, admin) await erc20.approve(erc20MessagingAddress, tc.SEND_AMOUNT_50) const sendToken = await sendTokenTx( @@ -757,7 +754,7 @@ describe('ToposMessaging', () => { (l) => (l as EventLog).eventName === 'TokenDeployed' ) as EventLog const tokenAddress = log.args.tokenAddress - const erc20 = await ERC20__factory.connect(tokenAddress, admin) + const erc20 = ERC20__factory.connect(tokenAddress, admin) await erc20.approve(erc20MessagingAddress, tc.SEND_AMOUNT_50) await expect( @@ -796,7 +793,7 @@ describe('ToposMessaging', () => { (l) => (l as EventLog).eventName === 'TokenDeployed' ) as EventLog const tokenAddress = log.args.tokenAddress - const erc20 = await ERC20__factory.connect(tokenAddress, admin) + const erc20 = ERC20__factory.connect(tokenAddress, admin) await erc20.approve(erc20MessagingAddress, tc.SEND_AMOUNT_50) const receiverAddress = await receiver.getAddress()