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-tracing-utils/test/trace_test.ts | |
parent | 75a4bbc5f2bf38c2ea8c18f21dc9b54eaf5bb422 (diff) | |
download | dexon-0x-contracts-63a63543be74d9e8822b7b111aa46350a5f524d8.tar dexon-0x-contracts-63a63543be74d9e8822b7b111aa46350a5f524d8.tar.gz dexon-0x-contracts-63a63543be74d9e8822b7b111aa46350a5f524d8.tar.bz2 dexon-0x-contracts-63a63543be74d9e8822b7b111aa46350a5f524d8.tar.lz dexon-0x-contracts-63a63543be74d9e8822b7b111aa46350a5f524d8.tar.xz dexon-0x-contracts-63a63543be74d9e8822b7b111aa46350a5f524d8.tar.zst dexon-0x-contracts-63a63543be74d9e8822b7b111aa46350a5f524d8.zip |
Make mapping namings direct
Diffstat (limited to 'packages/sol-tracing-utils/test/trace_test.ts')
-rw-r--r-- | packages/sol-tracing-utils/test/trace_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/sol-tracing-utils/test/trace_test.ts b/packages/sol-tracing-utils/test/trace_test.ts index 7a034362c..c9ed93e63 100644 --- a/packages/sol-tracing-utils/test/trace_test.ts +++ b/packages/sol-tracing-utils/test/trace_test.ts @@ -3,7 +3,7 @@ import { OpCode, StructLog } from 'ethereum-types'; import * as _ from 'lodash'; import 'mocha'; -import { getTracesByContractAddress } from '../src/trace'; +import { getContractAddressToTraces } from '../src/trace'; const expect = chai.expect; @@ -44,7 +44,7 @@ describe('Trace', () => { ]; const fullTrace = _.map(trace, compactStructLog => addDefaultStructLogFields(compactStructLog)); const startAddress = '0x0000000000000000000000000000000000000001'; - const traceByContractAddress = getTracesByContractAddress(fullTrace, startAddress); + const traceByContractAddress = getContractAddressToTraces(fullTrace, startAddress); const expectedTraceByContractAddress = { [startAddress]: [fullTrace[0], fullTrace[2]], [delegateCallAddress]: [fullTrace[1]], |