@@ -285,7 +285,7 @@ pub const MintMemoryDatabase = struct {
285
285
pub fn getMintQuoteByRequestLookupId (
286
286
self : * Self ,
287
287
allocator : std.mem.Allocator ,
288
- request : [] const u8 ,
288
+ request : zul.UUID ,
289
289
) ! ? MintQuote {
290
290
var arena = std .heap .ArenaAllocator .init (allocator );
291
291
defer arena .deinit ();
@@ -294,7 +294,7 @@ pub const MintMemoryDatabase = struct {
294
294
const quotes = try self .getMintQuotes (arena .allocator ());
295
295
for (quotes .items ) | q | {
296
296
// if we found, cloning with allocator, so caller responsible on free resources
297
- if (std . mem .eql (u8 , q . request_lookup_id , request )) return try q .clone (allocator );
297
+ if (q . request_lookup_id .eql (request )) return try q .clone (allocator );
298
298
}
299
299
300
300
return null ;
@@ -386,7 +386,7 @@ pub const MintMemoryDatabase = struct {
386
386
pub fn getMeltQuoteByRequestLookupId (
387
387
self : * Self ,
388
388
allocator : std.mem.Allocator ,
389
- request : [] const u8 ,
389
+ request : zul.UUID ,
390
390
) ! ? MeltQuote {
391
391
var arena = std .heap .ArenaAllocator .init (allocator );
392
392
defer arena .deinit ();
@@ -395,7 +395,7 @@ pub const MintMemoryDatabase = struct {
395
395
const quotes = try self .getMeltQuotes (arena .allocator ());
396
396
for (quotes .items ) | q | {
397
397
// if we found, cloning with allocator, so caller responsible on free resources
398
- if (std .mem .eql (u8 , q .request_lookup_id , request )) return try q .clone (allocator );
398
+ if (std .mem .eql (u8 , q .request_lookup_id , & request . bin )) return try q .clone (allocator );
399
399
}
400
400
401
401
return null ;
0 commit comments