Skip to content

Commit

Permalink
Use environment from parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
saadahmsiddiqui committed Oct 15, 2024
1 parent 7e204dd commit ef63eba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/evm/src/semiFungbleAssetTransfer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Config, ResourceType } from '@buildwithsygma/core';
import { Config, Environment, ResourceType } from '@buildwithsygma/core';
import type { EvmResource } from '@buildwithsygma/core';
import { ERC1155__factory, Bridge__factory } from '@buildwithsygma/sygma-contracts';
import { Web3Provider } from '@ethersproject/providers';
Expand Down Expand Up @@ -128,7 +128,7 @@ export async function createSemiFungibleAssetTransfer(
params: SemiFungibleTransferParams,
): Promise<SemiFungibleAssetTransfer> {
const config = new Config();
await config.init(process.env.SYGMA_ENV);
await config.init(params.environment ?? Environment.MAINNET);

const transfer = new SemiFungibleAssetTransfer(params, config);
const isValidTransfer = await transfer.isValidTransfer();
Expand Down

0 comments on commit ef63eba

Please sign in to comment.