@reality.eth/reality-eth-lib 3.3.1 → 3.4.0
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/package.json +3 -3
- package/test/formatters.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reality.eth/reality-eth-lib",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
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.0
|
|
19
|
+
"@reality.eth/contracts": "^3.1.0",
|
|
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": "a2085e2003e071267ec59b80da9bc7e52356b5f4"
|
|
43
43
|
}
|
package/test/formatters.js
CHANGED
|
@@ -99,6 +99,7 @@ describe('Answer strings', function() {
|
|
|
99
99
|
expect(rc_question.getAnswerString(q, '0x0000000000000000000000000000000000000000000000001BC16D674EC80000')).to.equal('2');
|
|
100
100
|
});
|
|
101
101
|
|
|
102
|
+
/*
|
|
102
103
|
it('Leaves bytes32 strings unchanged except forced to lower case', function() {
|
|
103
104
|
// We don't have a built-in type for this yet so just switch out the uint one
|
|
104
105
|
var q = rc_question.populatedJSONForTemplate(rc_template.defaultTemplateForType('uint'), '');
|
|
@@ -109,6 +110,7 @@ describe('Answer strings', function() {
|
|
|
109
110
|
expect(rc_question.getAnswerString(q, '0x0000000000000000000000000000000000000000000000001BC16D674EC80000')).to.equal('0x0000000000000000000000000000000000000000000000001BC16D674EC80000'.toLowerCase());
|
|
110
111
|
expect(rc_question.getAnswerString(q, '0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff')).to.equal('Invalid');
|
|
111
112
|
});
|
|
113
|
+
*/
|
|
112
114
|
|
|
113
115
|
|
|
114
116
|
/*
|