The process of getting to. I will fish for you.
The problem is that the “Web3provider” component issues the control object on Shep, but the Inyour code, you are your code, you are an entrance to access its directly fratitic and correspondence.
Is an update of your code with the necessary changes:
`Sx
React import, {useless, use of Jeter "Redura";
Import {Ed Ethers} Fro "Ethers";
Import {ABI contract, j Contrartadreres's J
Constint ethereum = () => {
Const [bills, CERTS] = Useste ([]);
Use () ugly => {
// set the supplier and get accounts
Continue employees = Nere Ethers.providers.Web3Provider (Window.etherreum);
Const ConccountSlist = Wait for the supplier. Get Signedaccounts ());
Set accounts (bills);
/// If no accounts have been found, try to connect with Yan neck Ethereum
iif (aaccounts.length = = 0) {
condo.log ("no accounts we like");
}
}, []);
return (
Etherere h1>
{/ Your React application container /}
4
),,
^
Export the default ethereum;
S
In this updated version, the tool is used to store the account list. Wat Comrade, initiated to connect to the Ethereum network, uses Provoid and Gettable. If none does not include the reserve, this is logic for a month.
The man is the difference is that we are now passing the object to the processing by the proportion "Etherum from the component, inspiring the access to access or correspondence.
Make the highest` ethers.js’ by launching the NPM or Yan installation installation Add ethics in the project catalog.