tools icon indicating copy to clipboard operation
tools copied to clipboard

@0x/sol-profiler not working with solc 0.7.6

Open lcswillems opened this issue 4 years ago • 7 comments

Expected Behavior

@0x/sol-profiler works with solc 0.7.5 but not with 0.7.6.

Here is a reproduction: https://github.com/lcswillems/0x-profiler-error-0.7.6

I get this error:

TypeError: Cannot read property 'split' of undefined
    at Object.parseSourceMap (/mnt/Data/Downloads/dev-tools-truffle-example/node_modules/@0x/sol-tracing-utils/src/source_maps.ts:53:28)
    at TraceCollector.<anonymous> (/mnt/Data/Downloads/dev-tools-truffle-example/node_modules/@0x/sol-tracing-utils/src/trace_collector.ts:106:33)
    at Generator.next (<anonymous>)
    at fulfilled (/mnt/Data/Downloads/dev-tools-truffle-example/node_modules/@0x/sol-tracing-utils/lib/src/trace_collector.js:5:58)

After investigation, it seems the profiler assumes contract artifact contains a field compilerOutput.evm.deployedBytecode.sourceMap which is not the case.

lcswillems avatar Apr 22 '21 13:04 lcswillems

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 26 '21 17:05 stale[bot]

I don't think it should be closed.

lcswillems avatar May 26 '21 17:05 lcswillems

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 26 '21 02:06 stale[bot]

I don't think it should be closed.

lcswillems avatar Jun 26 '21 09:06 lcswillems

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 08 '22 22:01 stale[bot]

I don't think it should be closed.

lcswillems avatar Jan 09 '22 16:01 lcswillems

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 16 '22 05:04 stale[bot]