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

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

Build:
Build:
LAST BUILD BRANCH: wyatt/rename-eth2-packages
DEFAULT BRANCH: 1.x
Ran 15 Sep 2017 07:12PM UTC
Files 41
Run time 2s
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

15 Sep 2017 11:26AM UTC coverage: 85.208%. Remained the same
CXX=g++-4.8 TEST_SUITE=test

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

Source Files on job 1950.3 (CXX=g++-4.8 TEST_SUITE=test)
  • Tree
  • List 0
  • Changed 8
  • Source Changed 1
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 1950
  • Travis Job 1950.3
  • 18dffea6 on github
  • Prev Job for CXX=g++-4.8 TEST_SUITE=test on 1.0 (#1949.3)
  • Next Job for CXX=g++-4.8 TEST_SUITE=test on 1.0 (#1951.3)
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