diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-09-20 03:09:36 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-13 01:11:53 +0800 |
commit | ed3737c1f14182f75815d2d7d761b3c84602a5c6 (patch) | |
tree | beaa321b7e58fb84fe0bd53d0b2cfdd19bfbb06a /packages/pipeline/test | |
parent | c9dc69bed6e57f18b35ecd53dd65b9c5a44d9886 (diff) | |
download | dexon-sol-tools-ed3737c1f14182f75815d2d7d761b3c84602a5c6.tar dexon-sol-tools-ed3737c1f14182f75815d2d7d761b3c84602a5c6.tar.gz dexon-sol-tools-ed3737c1f14182f75815d2d7d761b3c84602a5c6.tar.bz2 dexon-sol-tools-ed3737c1f14182f75815d2d7d761b3c84602a5c6.tar.lz dexon-sol-tools-ed3737c1f14182f75815d2d7d761b3c84602a5c6.tar.xz dexon-sol-tools-ed3737c1f14182f75815d2d7d761b3c84602a5c6.tar.zst dexon-sol-tools-ed3737c1f14182f75815d2d7d761b3c84602a5c6.zip |
Make contractAbi a parameter of getContractEventsAsync
Diffstat (limited to 'packages/pipeline/test')
-rw-r--r-- | packages/pipeline/test/data-sources/etherscan/events_test.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/pipeline/test/data-sources/etherscan/events_test.ts b/packages/pipeline/test/data-sources/etherscan/events_test.ts index 1151757f2..cb8e9d8e8 100644 --- a/packages/pipeline/test/data-sources/etherscan/events_test.ts +++ b/packages/pipeline/test/data-sources/etherscan/events_test.ts @@ -3,6 +3,8 @@ import * as chai from 'chai'; import { DecodedLogArgs, LogEntry, LogWithDecodedArgs } from 'ethereum-types'; import 'mocha'; +import { artifacts } from '../../../src/artifacts'; + import { _convertResponseToLogEntry, _decodeLogEntry, @@ -81,7 +83,7 @@ describe('etherscan#events', () => { takerAssetData: '0xf47261b0000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', }, }; - const actual = _decodeLogEntry(input); + const actual = _decodeLogEntry(artifacts.Exchange.compilerOutput.abi, input); expect(actual).deep.equal(expected); }); }); |