From 4d9029bb0e3b215efdf165704c80d3bacef0e85a Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Wed, 28 Mar 2018 11:05:36 +0200 Subject: Add metacoin example project --- packages/utils/src/abi_decoder.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/utils/src') diff --git a/packages/utils/src/abi_decoder.ts b/packages/utils/src/abi_decoder.ts index d49906cfb..36c7839cf 100644 --- a/packages/utils/src/abi_decoder.ts +++ b/packages/utils/src/abi_decoder.ts @@ -27,7 +27,7 @@ export class AbiDecoder { return `0x${formatted}`; } constructor(abiArrays: AbiDefinition[][]) { - _.forEach(abiArrays, this._addABI.bind(this)); + _.forEach(abiArrays, this.addABI.bind(this)); } // This method can only decode logs from the 0x & ERC20 smart contracts public tryToDecodeLogOrNoop(log: LogEntry): LogWithDecodedArgs | RawLog { @@ -73,7 +73,7 @@ export class AbiDecoder { }; } } - private _addABI(abiArray: AbiDefinition[]): void { + public addABI(abiArray: AbiDefinition[]): void { if (_.isUndefined(abiArray)) { return; } -- cgit