Skip to content

Commit 3f5605e

Browse files
committed
fix: uuid
1 parent 172fd62 commit 3f5605e

File tree

1 file changed

+6
-2
lines changed
  • packages/indexer-common/src/indexing-fees

1 file changed

+6
-2
lines changed

packages/indexer-common/src/indexing-fees/dips.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ import { Wallet } from 'ethers'
3131

3232
const DIPS_COLLECTION_INTERVAL = 60_000
3333

34+
const uuidToHex = (uuid: string) => {
35+
return `0x${uuid.replace(/-/g, '')}`
36+
}
37+
3438
export class DipsManager {
3539
declare gatewayDipsServiceClient: GatewayDipsServiceClientImpl
3640

@@ -58,7 +62,7 @@ export class DipsManager {
5862
if (agreement) {
5963
try {
6064
const cancellation = await createSignedCancellationRequest(
61-
agreement.id,
65+
uuidToHex(agreement.id),
6266
this.network.wallet,
6367
)
6468
await this.gatewayDipsServiceClient.CancelAgreement({
@@ -236,7 +240,7 @@ export class DipsCollector {
236240
}
237241
const entityCount = entityCounts[0]
238242
const collection = await createSignedCollectionRequest(
239-
agreement.id,
243+
uuidToHex(agreement.id),
240244
agreement.last_allocation_id,
241245
entityCount,
242246
this.wallet,

0 commit comments

Comments
 (0)