Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix: remove unnecessary await
Browse files Browse the repository at this point in the history
Signed-off-by: Jawad Tariq <[email protected]>
  • Loading branch information
JDawg287 committed Feb 15, 2024
1 parent 50baf3c commit b8cc79f
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions test/topos-core/ToposMessaging.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit b8cc79f

Please sign in to comment.