chronicled / open-registry-sdk Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
When running the Consumer example in the README example a BigNumber Error is thrown.
Example snippet:
var Provider = require('open-registry-sdk');
var contracts = {registrarAddress: '0xd76bc6a9eac205734b6fa2f72383db8f0ddecf64', registryAddress: '0x885ef67217954b7fd5d9cd7e79f3aba1599cffe0'};
var sdk = new Provider('http://localhost:8545', 'consumer', null, contracts);
sdk.getThing('ble:1.0:00112233').then(function(thing) {
console.log(thing);
});
I'm running geth 1.5.9-stable-a07539fb
and [email protected]
with node v6.10.1. My node is fully synchronized. I saw some open issues about this with web3.js
but usually this is due to a node not synced, which is not the case. I tried with both the ropsten testnet and the main testnet.
Call stack:
BigNumber Error: new BigNumber() not a base 16 number:
at raise (/usr/lib/node_modules/open-registry-sdk/build/open-registry-sdk.js:81:351)
at /usr/lib/node_modules/open-registry-sdk/build/open-registry-sdk.js:81:8066
at new BigNumber (/usr/lib/node_modules/open-registry-sdk/build/open-registry-sdk.js:80:29002)
at SolidityTypeDynamicBytes.formatOutputDynamicBytes [as _outputFormatter] (/usr/lib/node_modules/open-registry-sdk/build/open-registry-sdk.js:234:4913)
at /usr/lib/node_modules/open-registry-sdk/build/open-registry-sdk.js:234:12752
at SolidityTypeDynamicBytes.SolidityType.decode (/usr/lib/node_modules/open-registry-sdk/build/open-registry-sdk.js:234:12842)
at /usr/lib/node_modules/open-registry-sdk/build/open-registry-sdk.js:234:754
at Array.map (native)
at SolidityCoder.decodeParams (/usr/lib/node_modules/open-registry-sdk/build/open-registry-sdk.js:234:701)
at SolidityFunction.unpackOutput (/usr/lib/node_modules/open-registry-sdk/build/open-registry-sdk.js:215:16230)
at Object.callback (/usr/lib/node_modules/open-registry-sdk/build/open-registry-sdk.js:215:16739)
at /usr/lib/node_modules/open-registry-sdk/build/open-registry-sdk.js:12:31838
at /usr/lib/node_modules/open-registry-sdk/build/open-registry-sdk.js:216:2030
at Web3ProviderEngine._inspectResponseForNewBlock (/usr/lib/node_modules/open-registry-sdk/build/open-registry-sdk.js:214:15732)
at /usr/lib/node_modules/open-registry-sdk/build/open-registry-sdk.js:214:13520
at /usr/lib/node_modules/open-registry-sdk/build/open-registry-sdk.js:88:304
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.