diff --git a/apps/maestro/src/features/InterchainTokenDeployment/hooks/useDeployAndRegisterRemoteInterchainTokenMutation.ts b/apps/maestro/src/features/InterchainTokenDeployment/hooks/useDeployAndRegisterRemoteInterchainTokenMutation.ts index a8ad5cb7d..953dbb9ff 100644 --- a/apps/maestro/src/features/InterchainTokenDeployment/hooks/useDeployAndRegisterRemoteInterchainTokenMutation.ts +++ b/apps/maestro/src/features/InterchainTokenDeployment/hooks/useDeployAndRegisterRemoteInterchainTokenMutation.ts @@ -78,25 +78,17 @@ export function useDeployAndRegisterRemoteInterchainTokenMutation( }, }); - const { originalChainName, destinationChainNames } = useMemo(() => { + const { destinationChainNames } = useMemo(() => { const index = computed.indexedById; - const originalChainName = - index[input?.sourceChainId ?? chainId]?.chain_name ?? "Unknown"; return { - originalChainName, destinationChainNames: input?.destinationChainIds.map( (destinationChainId) => index[destinationChainId]?.chain_name ?? "Unknown" ) ?? [], }; - }, [ - chainId, - computed.indexedById, - input?.destinationChainIds, - input?.sourceChainId, - ]); + }, [computed.indexedById, input?.destinationChainIds]); const multicallArgs = useMemo(() => { if (!input || !tokenId) { @@ -125,14 +117,14 @@ export function useDeployAndRegisterRemoteInterchainTokenMutation( const registerTxData = destinationChainNames.map((destinationChain, i) => INTERCHAIN_TOKEN_FACTORY_ENCODERS.deployRemoteInterchainToken.data({ ...commonArgs, - originalChainName, + originalChainName: "", destinationChain, gasValue: input.remoteDeploymentGasFees?.gasFees?.[i].fee ?? 0n, }) ); return [deployTxData, ...registerTxData]; - }, [input, tokenId, destinationChainNames, originalChainName]); + }, [input, tokenId, destinationChainNames]); const totalGasFee = input?.remoteDeploymentGasFees?.totalGasFee ?? 0n; diff --git a/apps/maestro/src/features/RegisterRemoteTokens/hooks/useRegisterRemoteInterchainTokens.ts b/apps/maestro/src/features/RegisterRemoteTokens/hooks/useRegisterRemoteInterchainTokens.ts index be36eb2c9..98d12c1dd 100644 --- a/apps/maestro/src/features/RegisterRemoteTokens/hooks/useRegisterRemoteInterchainTokens.ts +++ b/apps/maestro/src/features/RegisterRemoteTokens/hooks/useRegisterRemoteInterchainTokens.ts @@ -69,18 +69,13 @@ export default function useRegisterRemoteInterchainTokens( return destinationChainIds.map((chainId, i) => INTERCHAIN_TOKEN_FACTORY_ENCODERS.deployRemoteInterchainToken.data({ salt: tokenDeployment.salt, - originalChainName: sourceChain?.chain_name ?? "", + originalChainName: "", minter: tokenDeployment.originalMinterAddress ?? zeroAddress, destinationChain: chainId, gasValue: gasFeesData.gasFees[i].fee, }) ); - }, [ - destinationChainIds, - gasFeesData, - sourceChain?.chain_name, - tokenDeployment, - ]); + }, [destinationChainIds, gasFeesData, tokenDeployment]); const totalGasFee = gasFeesData?.totalGasFee ?? 0n; diff --git a/packages/evm/src/contracts/its/InterchainTokenFactory/InterchainTokenFactory.args.ts b/packages/evm/src/contracts/its/InterchainTokenFactory/InterchainTokenFactory.args.ts index f320018e4..14e3bc12b 100644 --- a/packages/evm/src/contracts/its/InterchainTokenFactory/InterchainTokenFactory.args.ts +++ b/packages/evm/src/contracts/its/InterchainTokenFactory/InterchainTokenFactory.args.ts @@ -8,7 +8,7 @@ * DO NOT EDIT MANUALLY */ -import { encodeFunctionData, Hex } from "viem"; +import { encodeFunctionData } from "viem"; import type { PublicContractClient } from "../../PublicContractClient"; import ABI_FILE from "./InterchainTokenFactory.abi"; @@ -548,7 +548,7 @@ export function createInterchainTokenFactoryReadClient( return { canonicalInterchainTokenDeploySalt( canonicalInterchainTokenDeploySaltArgs: InterchainTokenFactoryCanonicalInterchainTokenDeploySaltArgs - ): Promise { + ) { const encoder = INTERCHAIN_TOKEN_FACTORY_ENCODERS["canonicalInterchainTokenDeploySalt"]; const encodedArgs = encoder.args(canonicalInterchainTokenDeploySaltArgs); @@ -560,7 +560,7 @@ export function createInterchainTokenFactoryReadClient( canonicalInterchainTokenId( canonicalInterchainTokenIdArgs: InterchainTokenFactoryCanonicalInterchainTokenIdArgs - ): Promise { + ) { const encoder = INTERCHAIN_TOKEN_FACTORY_ENCODERS["canonicalInterchainTokenId"]; const encodedArgs = encoder.args(canonicalInterchainTokenIdArgs);