hardhat-gas-reporter icon indicating copy to clipboard operation
hardhat-gas-reporter copied to clipboard

Optimize transaction watcher

Open cgewecke opened this issue 3 years ago • 0 comments

Should be able to get tx.input from the data in the eth_sendTransaction payload and reduce reqs by 1.

Then fetch the receipt from the tx hash returned by the call.

  • eth_sendRawTransaction needs to be decoded
    // Whatever the TS of this is...
    const utils = require('@ethersproject/transactions'); 
    const tx = utils.parse(rawTransactionHex);
    
  • Make a waffle test

Questions

  • Benchmark vs synthetix? They are running at ~10/12 min for 2200/2500 tests.
  • How often is util.matchBinaries being called from the reporter to resolve ids?

cgewecke avatar Oct 17 '20 17:10 cgewecke