Skip to content

Commit

Permalink
chore: handle erc721 gateway setup for fork tests
Browse files Browse the repository at this point in the history
  • Loading branch information
viraj124 committed Jan 8, 2025
1 parent 0625167 commit 537ca5a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/test-utils/src/utils/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,10 @@ export async function setupEnvironment(
}

if (!eth_fuelERC721GatewayAddress) {
if (!deployerAddresses.FuelERC721Gateway) {
throw new Error(
'Failed to get FuelERC721Gateway address from deployer'
);
if (deployerAddresses.FuelERC721Gateway) {
// we don't use the erc71 gateway for the fork test suite
eth_fuelERC721GatewayAddress = deployerAddresses.FuelERC721Gateway;
}
eth_fuelERC721GatewayAddress = deployerAddresses.FuelERC721Gateway;
}
}

Expand All @@ -301,7 +299,8 @@ export async function setupEnvironment(
eth_fuelERC20GatewayAddress,
eth_deployer
);



const eth_fuelERC721Gateway: FuelERC721Gateway =
FuelERC721Gateway__factory.connect(
eth_fuelERC721GatewayAddress,
Expand Down

0 comments on commit 537ca5a

Please sign in to comment.