@reality.eth/reality-eth-lib 3.4.6 → 3.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -106,6 +106,8 @@ exports.answerToBytes32 = function(answer, qjson) {
106
106
  if (decimals > 0) {
107
107
  var multiplier = new BigNumber(10).pow(new BigNumber(decimals));
108
108
  answer = new BigNumber(answer).times(multiplier).toString(16);
109
+ } else {
110
+ answer = new BigNumber(answer).toString(16);
109
111
  }
110
112
  //console.log('muliplied to ',answer.toString());
111
113
  var bn;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reality.eth/reality-eth-lib",
3
- "version": "3.4.6",
3
+ "version": "3.4.8",
4
4
  "description": "Tools for handling questions in the reality.eth fact verification platform",
5
5
  "scripts": {
6
6
  "test": "env TZ='Asia/Kabul' mocha ./test"
@@ -16,7 +16,7 @@
16
16
  "author": "Edmund Edgar (https://reality.eth.link)",
17
17
  "license": "GPL-3.0",
18
18
  "dependencies": {
19
- "@reality.eth/contracts": "^3.2.5",
19
+ "@reality.eth/contracts": "^3.2.7",
20
20
  "bignumber.js": "^7.2.1",
21
21
  "bn.js": "^5.2.1",
22
22
  "ethereumjs-abi": "^0.6.5",
@@ -39,5 +39,5 @@
39
39
  "url": "https://github.com/RealityETH/monorepo/issues"
40
40
  },
41
41
  "homepage": "https://reality.eth.link",
42
- "gitHead": "1b6316bde7fd1739ece635a754d2c1ed1ae6610c"
42
+ "gitHead": "fd724cfd4a2f28913cb940460ee4e375747ec8f1"
43
43
  }