Created
May 12, 2020 10:43
-
-
Save Sowmayjain/8b08e42f28a81a50a7af737884faa530 to your computer and use it in GitHub Desktop.
This file contains 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
dsa.estimateCastGas({ | |
spells: spells, | |
value: 0, | |
nonce: txCount | |
}) | |
.then(gasLimit => { | |
console.log(gasLimit); | |
}) | |
.catch(err => { | |
return console.error(`This transaction is likely to fail if sent to blockchain`) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment