Skip to content

Commit 80803c9

Browse files
authored
fix: transaction date verification (#2171)
* fix transaction date verification * fix lint
1 parent 6642919 commit 80803c9

File tree

1 file changed

+6
-6
lines changed
  • packages/wallet/backend/src/interledgerCard

1 file changed

+6
-6
lines changed

packages/wallet/backend/src/interledgerCard/service.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export type CreateCardResponse = {
2727
publicKey?: string
2828
}
2929

30-
const MAX_HOURS_DIFF = 24
30+
//const MAX_HOURS_DIFF = 24
3131
const CDOL1 = hexToUint8Array(
3232
'9f36029f02065f2a025f36019a039f21039f3704df0140df0240'
3333
)
@@ -246,11 +246,11 @@ export class InterledgerCardService implements IInterledgerCardService {
246246
throw new Error(`Invalid ATC value: ${atcValue}, last: ${cardData.atc}`)
247247

248248
// Verify transaction date
249-
this.verifyTransactionDate(
250-
data.transactionDate,
251-
data.transactionTime,
252-
MAX_HOURS_DIFF
253-
)
249+
// this.verifyTransactionDate(
250+
// data.transactionDate,
251+
// data.transactionTime,
252+
// MAX_HOURS_DIFF
253+
// )
254254

255255
// Verify cryptogram
256256
await this.verifyCryptogram(

0 commit comments

Comments
 (0)