@aboutcircles/sdk 0.1.4 → 0.1.5

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -5
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -704,7 +704,7 @@ function size(value) {
704
704
  var init_size = () => {};
705
705
 
706
706
  // ../../node_modules/viem/_esm/errors/version.js
707
- var version2 = "2.38.6";
707
+ var version2 = "2.40.3";
708
708
 
709
709
  // ../../node_modules/viem/_esm/errors/base.js
710
710
  function walk(err, fn) {
@@ -11120,11 +11120,8 @@ function encodeField({ types, name, type, value }) {
11120
11120
  keccak256(encodeData({ data: value, primaryType: type, types }))
11121
11121
  ];
11122
11122
  }
11123
- if (type === "bytes") {
11124
- const prepend = value.length % 2 ? "0" : "";
11125
- value = `0x${prepend + value.slice(2)}`;
11123
+ if (type === "bytes")
11126
11124
  return [{ type: "bytes32" }, keccak256(value)];
11127
- }
11128
11125
  if (type === "string")
11129
11126
  return [{ type: "bytes32" }, keccak256(toHex(value))];
11130
11127
  if (type.lastIndexOf("]") === type.length - 1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aboutcircles/sdk",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Simplified Circles SDK for non-crypto users with low entrance barrier",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -32,14 +32,14 @@
32
32
  },
33
33
  "license": "MIT",
34
34
  "dependencies": {
35
- "@aboutcircles/sdk-types": "workspace:*",
36
- "@aboutcircles/sdk-core": "workspace:*",
37
- "@aboutcircles/sdk-rpc": "workspace:*",
38
- "@aboutcircles/sdk-profiles": "workspace:*",
39
- "@aboutcircles/sdk-utils": "workspace:*",
40
- "@aboutcircles/sdk-runner": "workspace:*",
41
- "@aboutcircles/sdk-pathfinder": "workspace:*",
42
- "@aboutcircles/sdk-transfers": "workspace:*",
35
+ "@aboutcircles/sdk-types": "*",
36
+ "@aboutcircles/sdk-core": "*",
37
+ "@aboutcircles/sdk-rpc": "*",
38
+ "@aboutcircles/sdk-profiles": "*",
39
+ "@aboutcircles/sdk-utils": "*",
40
+ "@aboutcircles/sdk-runner": "*",
41
+ "@aboutcircles/sdk-pathfinder": "*",
42
+ "@aboutcircles/sdk-transfers": "*",
43
43
  "viem": "^2.38.0"
44
44
  },
45
45
  "devDependencies": {