Skip to content

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

@leonidlewis

Description

@leonidlewis

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions