hardhat-tenderly icon indicating copy to clipboard operation
hardhat-tenderly copied to clipboard

Cannot export transaction from local network

Open gabrielfior opened this issue 3 years ago • 3 comments

Following the steps here (https://github.com/Tenderly/tenderly-cli#export), I tried to export a transaction completed in my local hardhat network.

Steps to reproduce:

  • I execute a run.js Hardhat script to execute a local transaction. Below an excerpt:
tx {
  hash: '0x1ef8519aef9e5013dbffa3e6aae9c06dab31009f453c5f51a4e3e6fce5888278',
  type: 2,
  accessList: [],
  blockHash: '0x3b036d2ea516eabc490946a61a875f3208305d7be37ba8748db13525a0fc9900',
  blockNumber: 2,
  transactionIndex: 0,

I copy-and-paste the tx hash (0x1ef85...) into the tenderly export command:

tenderly export 0x1ef8519aef9e5013dbffa3e6aae9c06dab31009f453c5f51a4e3e6fce5888278

I obtain the errors on the Hardhat console below:

eth_getTransactionReceipt
eth_getStorageAt

  Errors encountered in param 1: Storage slot argument must have a length of 66 ("0x" + 32 bytes), but '0x2' has a length of 3

eth_getStorageAt

  Errors encountered in param 1: Storage slot argument must have a length of 66 ("0x" + 32 bytes), but '0x1' has a length of 3

Any helps/hints much appreciated!

gabrielfior avatar Jun 16 '22 19:06 gabrielfior

I'm getting the same error, did you manage to find a solution ?

lodelux avatar Jul 15 '22 13:07 lodelux

Same error here... Current CLI version: v1.4.5

My hardhat-tenderly version "@tenderly/hardhat-tenderly": "^1.1.4",

zeroarst avatar Jul 19 '22 13:07 zeroarst

same issue with 1.1.5

kev1n avatar Aug 13 '22 05:08 kev1n