• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ethereum / web3.js / 1950
52%
1.x: 80%

Build:
Build:
LAST BUILD BRANCH: wyatt/rename-eth2-packages
DEFAULT BRANCH: 1.x
Ran 15 Sep 2017 07:12PM UTC
Jobs 1
Files 41
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1950

push

travis-ci

frozeman
Fix unreliable array test in Contract package (#1013)

Using node.js 6.11.2 I get the following error when trying to instantiate contracts:
> jsonInterface instanceof Array
true
> new web3.eth.Contract(jsonInterface)
Error: You must provide the json interface of the contract when instatiating a contract object.

Although jsonInterface instanceof Array evaluates to true, the exact same test condition evaluates to false within the Contract constructor with the passed down json interface. Using either "Array.isArray(jsonInterface)" or "toString.call(jsonInterface) === '[object Array]'" as a test condition instead fixes the issue.

Also the typo in the error message got corrected.

1038 of 1407 branches covered (73.77%)

2166 of 2542 relevant lines covered (85.21%)

1326.73 hits per line

Jobs
ID Job ID Ran Files Coverage
3 1950.3 (CXX=g++-4.8 TEST_SUITE=test) 15 Sep 2017 07:12PM UTC 0
85.21
Travis Job 1950.3
Source Files on build 1950
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1950
  • 18dffea6 on github
  • Prev Build on 1.0 (#1949)
  • Next Build on 1.0 (#1951)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc