@reality.eth/reality-eth-lib 3.4.7 → 3.4.9
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.
- package/formatters/question.js +2 -0
- package/package.json +3 -3
package/formatters/question.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "3.4.9",
|
|
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.
|
|
19
|
+
"@reality.eth/contracts": "^3.2.8",
|
|
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": "
|
|
42
|
+
"gitHead": "88c70c0d165227d886d7fa0a2898e7c191b2db4e"
|
|
43
43
|
}
|