@exodus/web3-ethereum-utils 3.19.0 → 3.20.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/signatures.js +1 -5
- package/package.json +2 -2
package/lib/signatures.js
CHANGED
|
@@ -32,13 +32,9 @@ export function bufferToHex0xString(buf) {
|
|
|
32
32
|
if (!Buffer.isBuffer(buf)) {
|
|
33
33
|
throw new Error('expected a buffer');
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
const hex = buf.toString('hex');
|
|
36
36
|
if (typeof hex !== 'string') {
|
|
37
37
|
throw new Error('expected hex string');
|
|
38
38
|
}
|
|
39
|
-
// Remove leading zeros
|
|
40
|
-
while (hex.length > 0 && hex[0] === '0') {
|
|
41
|
-
hex = hex.slice(1);
|
|
42
|
-
}
|
|
43
39
|
return '0x' + hex;
|
|
44
40
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/web3-ethereum-utils",
|
|
3
3
|
"description": "Web3 Ethereum utils.",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.20.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"module": "lib/index.js",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"@exodus/web3-utils": "^1.40.0",
|
|
35
35
|
"@metamask/eth-sig-util": "^4.0.1"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "1580891fde0c2c4838f3118b7d11e1457cd7ab4b"
|
|
38
38
|
}
|