To reproduce the issue:
- Clone the repository
yarn
yarn start
to start a Ganache nodeyarn migrate
to compile and migrate contractyarn profile
to profile
Last command should lead to 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)
Now, if:
- you set
solcVersion
to0.7.5+commit.eb77ed08
intruffle-config.js
, - you remove
.0x-artifacts
andbuild
folders, - you run
yarn profile
again,
you should not have any error.