From f4cea4db350e0b6c2e990b12171f8677663e2d71 Mon Sep 17 00:00:00 2001 From: viraj124 Date: Wed, 8 Jan 2025 16:06:46 +0530 Subject: [PATCH] chore: formatting --- .../integration-tests/fork-tests/bridge_erc20.ts | 12 +++--------- .../integration-tests/fork-tests/transfer_eth.ts | 7 ++----- packages/solidity-contracts/tsconfig.json | 8 +------- packages/test-utils/src/utils/setup.ts | 3 +-- 4 files changed, 7 insertions(+), 23 deletions(-) diff --git a/packages/integration-tests/fork-tests/bridge_erc20.ts b/packages/integration-tests/fork-tests/bridge_erc20.ts index 33c9ebea..c2982889 100644 --- a/packages/integration-tests/fork-tests/bridge_erc20.ts +++ b/packages/integration-tests/fork-tests/bridge_erc20.ts @@ -3,9 +3,7 @@ import { RATE_LIMIT_AMOUNT, RATE_LIMIT_DURATION, } from '@fuel-bridge/solidity-contracts/protocol/constants'; -import type { - Token, -} from '@fuel-bridge/solidity-contracts/typechain'; +import type { Token } from '@fuel-bridge/solidity-contracts/typechain'; import type { TestEnvironment } from '@fuel-bridge/test-utils'; import { setupEnvironment, @@ -34,7 +32,6 @@ import type { Provider, } from 'fuels'; - const { expect } = chai; describe('Bridging ERC20 tokens', async function () { @@ -159,10 +156,7 @@ describe('Bridging ERC20 tokens', async function () { // override the commit hash in a existing block await env.eth.fuelChainState .connect(env.eth.signers[1]) - .commit( - ZeroHash, - commitHeight.toString() - ); + .commit(ZeroHash, commitHeight.toString()); // fast forward to the block finalization time await env.eth.provider.send('evm_increaseTime', [ @@ -736,4 +730,4 @@ describe('Bridging ERC20 tokens', async function () { ).to.be.true; }); }); -}); \ No newline at end of file +}); diff --git a/packages/integration-tests/fork-tests/transfer_eth.ts b/packages/integration-tests/fork-tests/transfer_eth.ts index 4608ea01..444f94bb 100644 --- a/packages/integration-tests/fork-tests/transfer_eth.ts +++ b/packages/integration-tests/fork-tests/transfer_eth.ts @@ -109,10 +109,7 @@ describe('Transferring ETH', async function () { // override the commit hash in a existing block await env.eth.fuelChainState .connect(env.eth.signers[1]) - .commit( - ZeroHash, - commitHeight.toString() - ); + .commit(ZeroHash, commitHeight.toString()); // fast forward to the block finalization time await env.eth.provider.send('evm_increaseTime', [ @@ -515,4 +512,4 @@ describe('Transferring ETH', async function () { expect(currentWithdrawnAmountAfterSettingLimit == 0n).to.be.true; }); }); -}); \ No newline at end of file +}); diff --git a/packages/solidity-contracts/tsconfig.json b/packages/solidity-contracts/tsconfig.json index 6c5f2582..3dacae81 100644 --- a/packages/solidity-contracts/tsconfig.json +++ b/packages/solidity-contracts/tsconfig.json @@ -8,12 +8,6 @@ "lib": ["ES2021"], "strict": true }, - "include": [ - "./scripts", - "./protocol", - "./test", - "./typechain", - "./deploy" - ], + "include": ["./scripts", "./protocol", "./test", "./typechain", "./deploy"], "files": ["./hardhat.config.ts"] } diff --git a/packages/test-utils/src/utils/setup.ts b/packages/test-utils/src/utils/setup.ts index f996d715..d04b452b 100644 --- a/packages/test-utils/src/utils/setup.ts +++ b/packages/test-utils/src/utils/setup.ts @@ -299,8 +299,7 @@ export async function setupEnvironment( eth_fuelERC20GatewayAddress, eth_deployer ); - - + const eth_fuelERC721Gateway: FuelERC721Gateway = FuelERC721Gateway__factory.connect( eth_fuelERC721GatewayAddress,