mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
fix: older than bug (#692)
This commit is contained in:
@@ -145,6 +145,13 @@ export class SelfBackendVerifier {
|
||||
);
|
||||
const userDefinedData = userContextData.slice(128);
|
||||
const configId = await this.configStorage.getActionId(userIdentifier, userDefinedData);
|
||||
if (!configId) {
|
||||
issues.push({
|
||||
type: ConfigMismatch.ConfigNotFound,
|
||||
message: "Config Id not found",
|
||||
});
|
||||
}
|
||||
|
||||
let verificationConfig: VerificationConfig | null;
|
||||
try {
|
||||
verificationConfig = await this.configStorage.getConfig(configId);
|
||||
|
||||
@@ -64,7 +64,6 @@ export const formatRevealedDataPacked = (
|
||||
revealedDataIndices[attestationId].olderThanStart,
|
||||
revealedDataIndices[attestationId].olderThanEnd + 1
|
||||
)
|
||||
.map((x) => x + 48)
|
||||
).toString('utf-8');
|
||||
const ofac = Array.from(
|
||||
revealedDataPackedString.subarray(
|
||||
@@ -72,7 +71,6 @@ export const formatRevealedDataPacked = (
|
||||
revealedDataIndices[attestationId].ofacEnd + 1
|
||||
)
|
||||
).map(Boolean);
|
||||
console.log('ofac', ofac);
|
||||
|
||||
return {
|
||||
nullifier: nullifier.toString(),
|
||||
|
||||
Reference in New Issue
Block a user