Created
June 5, 2020 09:03
-
-
Save alexroan/de3e8ec63c83916fc5c131085e6a1cbb to your computer and use it in GitHub Desktop.
supplyEthToCompound.js
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
cEthInstance.methods.mint().send({from: account, value: supplyValue}) | |
.once('transactionHash', (hash) => { | |
// Transaction hash | |
}) | |
.on('confirmation', (number, receipt) => { | |
// Number of confirmations | |
}) | |
.on('error', (error) => { | |
console.log(error); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment