dapptools
dapptools copied to clipboard
automatic gas estimation
Description
Adds automatic gas estimation to seth mktx
if ETH_GAS
is not set. Since seth mktx
is the underlying for seth send
and dapp create
, dapptools users will likely never have to input gas limits manually.
Checklist
- [x] tested locally
- [ ] added automated tests
- [x] updated the docs
- [x] updated the changelog
Very nice, been wanting this for some time. I have fixed ci on master, could you rebase so we can run it again?
This should be good to go now. I've made a couple of changes so that instead of directly calling eth_estimateGas, I make all gas estimations through seth estimate
(which I made a slight modification to).
I also made sure to do this gas estimation in both seth send
and seth mktx
. This is because if you use an RPC signer, just adding the estimation in seth mktx
is not sufficient.