Skip to content

Commit

Permalink
fix: ERC20 network shall be the selected one from the user dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioVentilii-DFINITY committed Jun 21, 2024
1 parent 4963b4c commit 6d1e334
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
import AddTokenReview from '$eth/components/tokens/AddTokenReview.svelte';
import { isNetworkIdEthereum, isNetworkIdICP } from '$lib/utils/network.utils';
import { saveErc20Contract } from '$eth/services/erc20.services';
import { selectedChainId, selectedEthereumNetwork } from '$eth/derived/network.derived';
import { selectedNetwork } from '$lib/derived/network.derived';
import type { EthereumNetwork } from '$eth/types/network';
const steps: WizardSteps = [
{
Expand Down Expand Up @@ -61,8 +61,8 @@
await saveErc20Contract({
contractAddress: erc20ContractAddress,
metadata: erc20Metadata,
chainId: $selectedChainId,
network: $selectedEthereumNetwork,
chainId: (network as EthereumNetwork).chainId,
network: network as EthereumNetwork,
updateSaveProgressStep: progress,
modalNext: modal.next,
onSuccess: close,
Expand Down

0 comments on commit 6d1e334

Please sign in to comment.