-
I can't seem to get the widget working with goerli testnet. We have deployed a Uniswap LP with our tokens on goerli with liquidity, but the option to select goerli does not appear. My widgetConfig: const widgetConfig: WidgetConfig = {
containerStyle: {
border: '1px solid rgb(234, 234, 234)',
borderRadius: '16px'
},
integrator,
tokens: {
allow: [
{ chainId: 5, address: '0x11fE4B6AE13d2a6055C8D9cF65c55bac32B5d844' },
{ chainId: 5, address: '0xc5E4eaB513A7CD12b2335e8a0D57273e13D499f7' }
]
},
chains: {
allow: [5]
},
fromChain: 5,
toChain: 5
}; |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 3 replies
-
@b-pmcg Hi 🙂 You need to set the dev environment API URL to see testnets: const widgetConfig: WidgetConfig = {
// ...
sdkConfig: {
apiUrl: 'https://develop.li.quest/v1',
},
}; Also, I tested your setup with allow tokens option, and because this property has a bit different use-case (allow certain tokens from our token list, not adding new to it) types are messed up and you will get an error. I'll try to see how to handle your use-case better, and in the meanwhile, please pass more complete information about the tokens to the config e.g.: const widgetConfig: WidgetConfig = {
// ...
tokens: {
allow: [
{
address: '0x11fE4B6AE13d2a6055C8D9cF65c55bac32B5d844',
chainId: 5,
decimals: 18,
logoURI: 'https://example.com/token.png',
name: 'Token',
symbol: 'TOKEN',
} as any,
]
},
}; |
Beta Was this translation helpful? Give feedback.
-
Thank you. I have been looking for an answer to this question for a long time |
Beta Was this translation helpful? Give feedback.
-
finally the answer, thx |
Beta Was this translation helpful? Give feedback.
-
I finally found the answer! Thank you ! |
Beta Was this translation helpful? Give feedback.
-
Thank you, it's good that I found the answer |
Beta Was this translation helpful? Give feedback.
@b-pmcg Hi 🙂 You need to set the dev environment API URL to see testnets:
Also, I tested your setup with allow tokens option, and because this property has a bit different use-case (allow certain tokens from our token list, not adding new to it) types are messed up and you will get an error. I'll try to see how to handle your use-case better, and in the meanwhile, please pass more complete information about the tokens to the config e.g.: