essential-eth 0.10.2 → 0.10.3
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/dist/cjs/classes/utils/encode-decode-transaction.js +5 -6
- package/dist/cjs/index.umd.js +1 -1
- package/dist/cjs/index.umd.js.map +1 -1
- package/dist/cjs/logger/package-version.d.ts +1 -1
- package/dist/cjs/logger/package-version.js +1 -1
- package/dist/esm/classes/utils/encode-decode-transaction.js +5 -5
- package/dist/esm/logger/package-version.d.ts +1 -1
- package/dist/esm/logger/package-version.js +1 -1
- package/package.json +1 -1
- package/readme.md +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.10.
|
|
1
|
+
export declare const version = "0.10.3";
|
|
@@ -67,11 +67,11 @@ export function encodeData(jsonABIArgument, args) {
|
|
|
67
67
|
break;
|
|
68
68
|
default:
|
|
69
69
|
if (inputType.startsWith('bytes')) {
|
|
70
|
-
|
|
71
|
-
.
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
const paddedEncodedArg = argEncoded.
|
|
70
|
+
if (Array.isArray(arg)) {
|
|
71
|
+
throw new Error(`essential-eth does not yet support "${inputType}[]" inputs. Make a PR today!"`);
|
|
72
|
+
}
|
|
73
|
+
const argEncoded = BigInt(arg).toString(16);
|
|
74
|
+
const paddedEncodedArg = argEncoded.padStart(64, '0');
|
|
75
75
|
return paddedEncodedArg;
|
|
76
76
|
}
|
|
77
77
|
else if (inputType === 'uint256') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.10.
|
|
1
|
+
export declare const version = "0.10.3";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '0.10.
|
|
1
|
+
export const version = '0.10.3';
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -126,7 +126,7 @@ Browsers:
|
|
|
126
126
|
|
|
127
127
|
```html
|
|
128
128
|
<!-- index.html -->
|
|
129
|
-
<script src="https://unpkg.com/essential-eth@0.10.
|
|
129
|
+
<script src="https://unpkg.com/essential-eth@0.10.3"></script>
|
|
130
130
|
```
|
|
131
131
|
|
|
132
132
|
<!-- ⛔️ AUTO-GENERATED-CONTENT:END (UNPKG_SCRIPT_TAG) -->
|