dapphub / dapphub/dapptools

example how to use source maps

Open
#888 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
2.1k
Forks
320
PR merge metrics
No merged PRs in 30d

Description

Hello,

i'm trying to use the interactive debugger in hevm. Contracts are compiled with `truffle compile`. Unfortunately I can not figure out how to set the source maps. I have tried like this

```
export ETH_RPC_URL=http://localhost:8545
export TXHASH=0x219cb5cca5708daa6c485c0688be6bbe6933cdea5fc802d3654c743452bbddf3
hevm exec --caller $(seth tx $TXHASH from) --address $(seth tx $TXHASH to) --calldata $(seth tx $TXHASH input) --rpc $ETH_RPC_URL --block $(($(seth tx $TXHASH blockNumber)-1)) --gas $(seth tx $TXHASH gas) --debug --json-file ./build/contracts/Contract.json
```
I always get `` in the debugger. I also can't seem to find it in the documentation.
I'd appreciate an example how to compile the contracts so I can debug a tx on chain with source code mapping.

Thank you

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.