Open damianlluch opened 2 years ago
I have followed the example in the documentation, adding a simple button to call the function to connect the wallet and I don't get any error, but I do get this warning
any suggestions?
isLocalChain is deprecated, can call with Chain directly
my code:
src/index.tsx
readOnlyChainId: BSCTestnet.chainId,
readOnlyUrls: {
[BSCTestnet.chainId]: 'https://data-seed-prebsc-1-s1.binance.org:8545/',
},
}
ReactDOM.render(
<React.StrictMode>
<DAppProvider config={config}>
<App />
</DAppProvider>
</React.StrictMode>,
document.getElementById('root')
)`
my component:
const SelectWallet:React.FC<RadioType> = ({ selected, setSelected}) => {
const { activateBrowserWallet, account } = useEthers()
return (
<div>
<button
type="button"
onClick={() => activateBrowserWallet()}
>Connect
</button>
</div>
)`
I have the same issue, although it does work when it is deployed, which is weird.
Hi, in the documentation you have this example for the setup with Infura for Ethereum. I need the project to work with Binance, I am not clear what data would go here:
The binance / testnet RPC?
thanks