diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-01-15 20:33:24 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-01-15 20:37:10 +0800 |
commit | 63a63543be74d9e8822b7b111aa46350a5f524d8 (patch) | |
tree | 054119646cd9994351b67552b4402af009d7fb66 /packages/sol-trace | |
parent | 75a4bbc5f2bf38c2ea8c18f21dc9b54eaf5bb422 (diff) | |
download | dexon-sol-tools-63a63543be74d9e8822b7b111aa46350a5f524d8.tar dexon-sol-tools-63a63543be74d9e8822b7b111aa46350a5f524d8.tar.gz dexon-sol-tools-63a63543be74d9e8822b7b111aa46350a5f524d8.tar.bz2 dexon-sol-tools-63a63543be74d9e8822b7b111aa46350a5f524d8.tar.lz dexon-sol-tools-63a63543be74d9e8822b7b111aa46350a5f524d8.tar.xz dexon-sol-tools-63a63543be74d9e8822b7b111aa46350a5f524d8.tar.zst dexon-sol-tools-63a63543be74d9e8822b7b111aa46350a5f524d8.zip |
Make mapping namings direct
Diffstat (limited to 'packages/sol-trace')
-rw-r--r-- | packages/sol-trace/src/revert_trace_subprovider.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/sol-trace/src/revert_trace_subprovider.ts b/packages/sol-trace/src/revert_trace_subprovider.ts index d36cba08b..fa065cfcb 100644 --- a/packages/sol-trace/src/revert_trace_subprovider.ts +++ b/packages/sol-trace/src/revert_trace_subprovider.ts @@ -106,8 +106,8 @@ export class RevertTraceSubprovider extends TraceCollectionSubprovider { continue; } - const fileIndexByFileName = _.invert(contractData.sources); - const fileIndex = _.parseInt(fileIndexByFileName[sourceRange.fileName]); + const fileNameToFileIndex = _.invert(contractData.sources); + const fileIndex = _.parseInt(fileNameToFileIndex[sourceRange.fileName]); const sourceSnippet = getSourceRangeSnippet(sourceRange, contractData.sourceCodes[fileIndex]); if (sourceSnippet !== null) { sourceSnippets.push(sourceSnippet); |