Last active
July 11, 2018 21:31
-
-
Save amazingandyyy/fa78071b46ba1f01b38694303132d2e7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const accounts = await web3.eth.getAccounts(); | |
const instance = new web3.eth.Contract(ABI,address) | |
instance.methods.functionName(params).send({ | |
from: accounts[0], | |
gas: '1000000' | |
}); |
Author
amazingandyyy
commented
Jul 11, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment