File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @liquality/wallet-sdk " : patch
3+ ---
4+
5+ Update chain-providers for MATIC Mainnet
Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ export function createChainProvider(chainId: number) {
2828 let chainProvider ;
2929 if ( chainId === CHAIN_IDS . BNB_MAINNET ) {
3030 chainProvider = new ethers . providers . JsonRpcProvider ( 'https://bsc-dataseed.binance.org/' , 56 ) ;
31+ } else if ( chainId === CHAIN_IDS . MATIC_MAINNET ) {
32+ chainProvider = new ethers . providers . JsonRpcProvider ( CHAINS [ chainId ] . providerRPCs . ALCHEMY + Config . ALCHEMY_API_KEY , 137 ) ;
3133 } else if ( chainId === CHAIN_IDS . MATIC_MUMBAI ) {
3234 chainProvider = new ethers . providers . JsonRpcProvider ( CHAINS [ chainId ] . providerRPCs . ALCHEMY + Config . ALCHEMY_API_KEY , 80001 ) ;
3335 }
You can’t perform that action at this time.
0 commit comments