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

How can I call the write function in the ERC-20 contract with eth-lightwallet? #234

Open
leonidlewis opened this issue Dec 3, 2021 · 0 comments

Comments

@leonidlewis
Copy link

I create my wallet with eth-lightwallet.
I am going to make the mobile app the same as the web app.
But in the app, when I call the write contract function on the website, the Metamask opens and I click the confirm and reject button.

result = await instance.methods.exampleContractfunction(p).send({
        from: accounts[0],
      });

Here, exampleContractFunction is the write function in the contract.
How can I use this module to call the write contract in the app?

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

1 participant