You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewError("You are using the RecordScanner implementation of the RecordProvider. No account has been registered with the RecordScanner which is required to use the findRecords method. Please set an with the setAccount method before calling the findRecords method again.");
249
253
}
250
254
251
255
filter.uuid=this.uuid;
@@ -277,7 +281,7 @@ class RecordScanner implements RecordProvider {
277
281
try{
278
282
constrecords=awaitthis.findRecords({
279
283
decrypt: true,
280
-
unspent: searchParameters.unspent??false,
284
+
unspent: searchParameters.unspent,
281
285
filter: {
282
286
start: searchParameters.filter?.start??0,
283
287
program: "credits.aleo",
@@ -294,7 +298,7 @@ class RecordScanner implements RecordProvider {
294
298
});
295
299
296
300
if(!record){
297
-
thrownewError("Record not found");
301
+
thrownewError(`No records found matching the supplied search filter:\n${JSON.stringify(searchParameters,null,2)}`);
298
302
}
299
303
300
304
returnrecord;
@@ -315,7 +319,7 @@ class RecordScanner implements RecordProvider {
315
319
try{
316
320
constrecords=awaitthis.findRecords({
317
321
decrypt: true,
318
-
unspent: searchParameters.unspent??false,
322
+
unspent: searchParameters.unspent,
319
323
filter: {
320
324
start: searchParameters.filter?.start??0,
321
325
program: "credits.aleo",
@@ -357,6 +361,14 @@ class RecordScanner implements RecordProvider {
357
361
throwerror;
358
362
}
359
363
}
364
+
365
+
privatecomputeUUID(vk: ViewKey): Field{
366
+
// Construct the material needed for the Poseidon oracle.
0 commit comments