Iâm trying to integrate Walletlink to my DApps but itâs not working.
It says: Uncaught (in promise) Error: Address not found
Whatâs wrong with my code?
const walletLinkEnable = async () => {
const APP_NAME = 'My App';
const APP_LOGO_URL = 'https://example.com/logo.png';
const ETH_JSONRPC_URL = 'https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161';
const CHAIN_ID = 1;
// Initialize WalletLink
const walletLink = new WalletLink({
appName: APP_NAME,
appLogoUrl: APP_LOGO_URL,
darkMode: false
});
console.log(walletLink);
// Initialize a Web3 Provider object
const ethereum = await walletLink.makeWeb3Provider(ETH_JSONRPC_URL, CHAIN_ID);
const _web3 = new Web3(ethereum);
return _web3;
}
Moralis.setEnableWeb3(walletLinkEnable);
web3 = await Moralis.enableWeb3();
When I check the walletLink, the app name, logo url property is null even I already init them.