Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web3.min.js:1 Uncaught (in promise) Error: invalid address #27

Open
dguhanus opened this issue Apr 23, 2022 · 1 comment
Open

web3.min.js:1 Uncaught (in promise) Error: invalid address #27

dguhanus opened this issue Apr 23, 2022 · 1 comment

Comments

@dguhanus
Copy link

Hi Gregory,
Thank you for your wonderful explanation. I have successfully the migrated the contract into Ganache.
I am able to load the smart contract after "npm run dev". But when I enter any text into the textbox, it is throwing an error:
web3.min.js:1 Uncaught (in promise) Error: invalid address web3.min.js:1
at u (web3.min.js:1). Here are the screenshots
Eth_TodoLis_1
Eth_TodoLis_2

@lucasribeiro-dev
Copy link

lucasribeiro-dev commented May 1, 2022

Try out this in your function "load" in the last line

   web3.eth.defaultAccount = App.account;

Will be like this

  load: async () => {
    await App.loadWeb3();
    await App.loadAccount();
    await App.loadContract();
    await App.render();
    web3.eth.defaultAccount = App.account;
  },

It worked for me

reference: https://ethereum.stackexchange.com/questions/1740/why-does-mist-throw-uncaught-invalid-address

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants