diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-09-20 03:09:36 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-12-05 06:23:32 +0800 |
commit | d71fa6535987a0f13900f8e31dbb51772c12fc4f (patch) | |
tree | e2354e5c5b75dc4a48b737d646f5a89821fce48f /packages/pipeline/test | |
parent | 75d3f24835fc68a758cfb44c6bc05095c3e87ad3 (diff) | |
download | dexon-sol-tools-d71fa6535987a0f13900f8e31dbb51772c12fc4f.tar dexon-sol-tools-d71fa6535987a0f13900f8e31dbb51772c12fc4f.tar.gz dexon-sol-tools-d71fa6535987a0f13900f8e31dbb51772c12fc4f.tar.bz2 dexon-sol-tools-d71fa6535987a0f13900f8e31dbb51772c12fc4f.tar.lz dexon-sol-tools-d71fa6535987a0f13900f8e31dbb51772c12fc4f.tar.xz dexon-sol-tools-d71fa6535987a0f13900f8e31dbb51772c12fc4f.tar.zst dexon-sol-tools-d71fa6535987a0f13900f8e31dbb51772c12fc4f.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); }); }); |