@exodus/ethereum-lib 0.0.8 → 0.1.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/lib/utils.js +2 -1
- package/package.json +3 -3
package/lib/utils.js
CHANGED
|
@@ -35,7 +35,8 @@ function currency2buffer(value) {
|
|
|
35
35
|
const b10Value = value.toBase().floor() // probably not necessary, but to be safe
|
|
36
36
|
.toString({
|
|
37
37
|
unit: false
|
|
38
|
-
});
|
|
38
|
+
}); // Desktop: const hexValue = value.toBase()._number.toString(16)
|
|
39
|
+
|
|
39
40
|
const hexValue = base16.encode(base10.decode(b10Value));
|
|
40
41
|
|
|
41
42
|
if (hexValue.includes('.')) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/ethereum-lib",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Ethereum Library",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@exodus/asset-lib": "^3.2.0",
|
|
17
17
|
"@exodus/models": "^8.2.0",
|
|
18
|
-
"base-x": "3.0.
|
|
18
|
+
"base-x": "^3.0.2",
|
|
19
19
|
"ethereumjs-tx": "1.3.7",
|
|
20
20
|
"ethereumjs-util": "5.2.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@exodus/assets": "8.0.x"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "4deb44ad3f254f99315cbc777ac758f7f443c821"
|
|
26
26
|
}
|