@dedot/contracts 0.17.1-next.9d03d21b.3 → 0.18.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/SolRegistry.js CHANGED
@@ -57,7 +57,7 @@ export class SolRegistry {
57
57
  if (contractAddress) {
58
58
  // @ts-ignore
59
59
  const emittedContract = event.palletEvent.data?.contract;
60
- return emittedContract === contractAddress;
60
+ return emittedContract?.toLowerCase() === contractAddress.toLowerCase();
61
61
  }
62
62
  return true;
63
63
  }
package/TypinkRegistry.js CHANGED
@@ -129,7 +129,7 @@ export class TypinkRegistry extends TypeRegistry {
129
129
  // @ts-ignore
130
130
  const emittedContract = event.palletEvent.data?.contract;
131
131
  if (this.isRevive()) {
132
- return emittedContract === contractAddress;
132
+ return emittedContract?.toLowerCase() === contractAddress.toLowerCase();
133
133
  }
134
134
  else if (emittedContract instanceof AccountId32) {
135
135
  return emittedContract.eq(contractAddress);
@@ -60,7 +60,7 @@ class SolRegistry {
60
60
  if (contractAddress) {
61
61
  // @ts-ignore
62
62
  const emittedContract = event.palletEvent.data?.contract;
63
- return emittedContract === contractAddress;
63
+ return emittedContract?.toLowerCase() === contractAddress.toLowerCase();
64
64
  }
65
65
  return true;
66
66
  }
@@ -155,7 +155,7 @@ class TypinkRegistry extends codecs_1.TypeRegistry {
155
155
  // @ts-ignore
156
156
  const emittedContract = event.palletEvent.data?.contract;
157
157
  if (this.isRevive()) {
158
- return emittedContract === contractAddress;
158
+ return emittedContract?.toLowerCase() === contractAddress.toLowerCase();
159
159
  }
160
160
  else if (emittedContract instanceof codecs_1.AccountId32) {
161
161
  return emittedContract.eq(contractAddress);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/contracts",
3
- "version": "0.17.1-next.9d03d21b.3+9d03d21b",
3
+ "version": "0.18.0",
4
4
  "description": "Delightful ink! Contract APIs",
5
5
  "author": "Tung Vu <tung@dedot.dev>",
6
6
  "homepage": "https://dedot.dev",
@@ -18,10 +18,10 @@
18
18
  "test": "npx vitest --watch=false"
19
19
  },
20
20
  "dependencies": {
21
- "@dedot/api": "0.17.1-next.9d03d21b.3+9d03d21b",
22
- "@dedot/codecs": "0.17.1-next.9d03d21b.3+9d03d21b",
23
- "@dedot/types": "0.17.1-next.9d03d21b.3+9d03d21b",
24
- "@dedot/utils": "0.17.1-next.9d03d21b.3+9d03d21b",
21
+ "@dedot/api": "0.18.0",
22
+ "@dedot/codecs": "0.18.0",
23
+ "@dedot/types": "0.18.0",
24
+ "@dedot/utils": "0.18.0",
25
25
  "viem": "^2.37.7"
26
26
  },
27
27
  "publishConfig": {
@@ -32,7 +32,7 @@
32
32
  "node": ">=18"
33
33
  },
34
34
  "license": "Apache-2.0",
35
- "gitHead": "9d03d21b0b652b14222301b64682940047514172",
35
+ "gitHead": "32395b356a4febaac0d52506742947c916ac9895",
36
36
  "module": "./index.js",
37
37
  "types": "./index.d.ts",
38
38
  "exports": {