Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Test Web3.js 1.0 release by adding yarn link step to Travis install #2182

Closed
wants to merge 10 commits into from
3 changes: 1 addition & 2 deletions packages/truffle-decode-utils/src/contexts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const debug = debugModule("decode-utils:contexts");

import { Abi } from "truffle-contract-schema/spec";
import { AbiCoder } from "web3-eth-abi";
import { AbiItem } from "web3-utils";
const abiCoder = new AbiCoder();
import escapeRegExp from "lodash.escaperegexp";

Expand Down Expand Up @@ -97,7 +96,7 @@ export namespace Contexts {
debug("signature read: %s", signature);
//if not, compute it ourselves
if(signature === undefined) {
signature = abiCoder.encodeFunctionSignature(<AbiItem>abiEntry);
signature = abiCoder.encodeFunctionSignature(<any>abiEntry);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doing this since #2214 demonstrates the same AbiItem failure as on this branch, and I think this shouldn't impact the web3 release validation.

//Notice the type coercion -- web3 and our schema describe things a little
//differently, and TypeScript complains. I think we just have to force it,
//sorry.
Expand Down