trufflesuite / truffle-debugger

Core functionality for debugging Solidity files built with Truffle
67 stars 12 forks source link

Support unresolved link references in contract bytecode #65

Closed gnidan closed 6 years ago

gnidan commented 6 years ago

Ref: #64

Currently, the debugger looks up known (provided) bytecodes via observed binary values (via getCode or CREATE 0x...). These actual values are compared against the provided values using a naive string comparison. (For the case of CREATE, constructor arguments are truncated off word-by-word until there is a string match)

This PR modifies how that search is performed, and how the current context is represented: