@wopr-network/platform-core 1.31.0 → 1.31.1

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.
@@ -87,13 +87,13 @@ export class DrizzleCryptoChargeRepository {
87
87
  status: "New",
88
88
  chain: input.chain,
89
89
  token: input.token,
90
- depositAddress: input.depositAddress,
90
+ depositAddress: input.depositAddress.toLowerCase(),
91
91
  derivationIndex: input.derivationIndex,
92
92
  });
93
93
  }
94
94
  /** Look up a charge by its deposit address. */
95
95
  async getByDepositAddress(address) {
96
- const row = (await this.db.select().from(cryptoCharges).where(eq(cryptoCharges.depositAddress, address)))[0];
96
+ const row = (await this.db.select().from(cryptoCharges).where(eq(cryptoCharges.depositAddress, address.toLowerCase())))[0];
97
97
  if (!row)
98
98
  return null;
99
99
  return this.toRecord(row);
@@ -5,14 +5,14 @@
5
5
  {
6
6
  "idx": 0,
7
7
  "version": "7",
8
- "when": 1773159905670,
8
+ "when": 1741622400000,
9
9
  "tag": "0000_slippery_mandrill",
10
10
  "breakpoints": true
11
11
  },
12
12
  {
13
13
  "idx": 1,
14
14
  "version": "7",
15
- "when": 1773279600000,
15
+ "when": 1741708800000,
16
16
  "tag": "0001_infrastructure_extraction",
17
17
  "breakpoints": true
18
18
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wopr-network/platform-core",
3
- "version": "1.31.0",
3
+ "version": "1.31.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -144,14 +144,16 @@ export class DrizzleCryptoChargeRepository implements ICryptoChargeRepository {
144
144
  status: "New",
145
145
  chain: input.chain,
146
146
  token: input.token,
147
- depositAddress: input.depositAddress,
147
+ depositAddress: input.depositAddress.toLowerCase(),
148
148
  derivationIndex: input.derivationIndex,
149
149
  });
150
150
  }
151
151
 
152
152
  /** Look up a charge by its deposit address. */
153
153
  async getByDepositAddress(address: string): Promise<CryptoChargeRecord | null> {
154
- const row = (await this.db.select().from(cryptoCharges).where(eq(cryptoCharges.depositAddress, address)))[0];
154
+ const row = (
155
+ await this.db.select().from(cryptoCharges).where(eq(cryptoCharges.depositAddress, address.toLowerCase()))
156
+ )[0];
155
157
  if (!row) return null;
156
158
  return this.toRecord(row);
157
159
  }