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.
@@ -1 +1 @@
1
- export declare const version = "0.10.2";
1
+ export declare const version = "0.10.3";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
4
  // Generated by genversion.
5
- exports.version = '0.10.2';
5
+ exports.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
- const argEncoded = rawArg
71
- .split('')
72
- .map((character) => character.charCodeAt(0).toString(16))
73
- .join('');
74
- const paddedEncodedArg = argEncoded.padEnd(64, '0');
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.2";
1
+ export declare const version = "0.10.3";
@@ -1 +1 @@
1
- export const version = '0.10.2';
1
+ export const version = '0.10.3';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "essential-eth",
3
3
  "description": "Ultralight JS for Ethereum",
4
- "version": "0.10.2",
4
+ "version": "0.10.3",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,
7
7
  "type": "module",
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.2"></script>
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) -->