Skip to content

Instantly share code, notes, and snippets.

@Sowmayjain
Created May 12, 2020 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sowmayjain/8b08e42f28a81a50a7af737884faa530 to your computer and use it in GitHub Desktop.
Save Sowmayjain/8b08e42f28a81a50a7af737884faa530 to your computer and use it in GitHub Desktop.
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