Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] [Meld] Unable to change default chain in Meld OnRamp #3006

Open
ms-safiq opened this issue Oct 4, 2024 · 0 comments
Open

[bug] [Meld] Unable to change default chain in Meld OnRamp #3006

ms-safiq opened this issue Oct 4, 2024 · 0 comments

Comments

@ms-safiq
Copy link

ms-safiq commented Oct 4, 2024

Link to minimal reproducible example

Hi Team,

I am using "@web3modal/ethers": "5.1.10",

I was trying to launch OnRamp window and it shown Coinbase and Meld. When I click on Meld its opening with Ethereum chain as default. How can i change this default chain to Arbitrum One?

` const chainOptions: any = {
chainId: 42161,
name: "Arbitrum One",
currency: "ETH",
explorerUrl: "https://sepolia.arbiscan.io/",
rpcUrl: "https://sepolia-rollup.arbitrum.io/rpc",
};

const metadata = {
name: "****",
description: environment.selfDomain,
url: environment.selfDomain,
icons: [environment.selfDomain + "/assets/icons/logo.svg"],
};

const ethersConfig = defaultConfig({
auth: {
email: true,
socials: ["google", "x", "apple"],
showWallets: true,
walletFeatures: true,
},
defaultChainId: 42161,
metadata,
});

this.wcModal = createWeb3Modal({
ethersConfig,
chains: [chainOptions],
projectId,
enableOnramp: true,
});`

Screenshot 2024-10-04 at 10 49 39 AM Screenshot 2024-10-04 at 10 49 49 AM

List of related npm package versions

@web3modal/ethers": "5.1.10

@ms-safiq ms-safiq added bug Something isn't working needs review labels Oct 4, 2024
@ms-safiq ms-safiq changed the title [bug] Unable change default chain in Meld OnRamp [bug] [Meld] Unable to change default chain in Meld OnRamp Oct 4, 2024
@rtomas rtomas added feature-request and removed bug Something isn't working needs review labels Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants