File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/indexer-common/src/indexing-fees Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ import { Wallet } from 'ethers'
31
31
32
32
const DIPS_COLLECTION_INTERVAL = 60_000
33
33
34
+ const uuidToHex = ( uuid : string ) => {
35
+ return `0x${ uuid . replace ( / - / g, '' ) } `
36
+ }
37
+
34
38
export class DipsManager {
35
39
declare gatewayDipsServiceClient : GatewayDipsServiceClientImpl
36
40
@@ -58,7 +62,7 @@ export class DipsManager {
58
62
if ( agreement ) {
59
63
try {
60
64
const cancellation = await createSignedCancellationRequest (
61
- agreement . id ,
65
+ uuidToHex ( agreement . id ) ,
62
66
this . network . wallet ,
63
67
)
64
68
await this . gatewayDipsServiceClient . CancelAgreement ( {
@@ -236,7 +240,7 @@ export class DipsCollector {
236
240
}
237
241
const entityCount = entityCounts [ 0 ]
238
242
const collection = await createSignedCollectionRequest (
239
- agreement . id ,
243
+ uuidToHex ( agreement . id ) ,
240
244
agreement . last_allocation_id ,
241
245
entityCount ,
242
246
this . wallet ,
You can’t perform that action at this time.
0 commit comments