File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
- FROM node:18 -alpine
1
+ FROM node:20 -alpine
2
2
WORKDIR /app
3
3
ENV NODE_ENV=production
4
4
Original file line number Diff line number Diff line change @@ -424,7 +424,10 @@ export async function getFormattedAttestationFromLog(
424
424
}
425
425
426
426
const schemaEncoder = new SchemaEncoder ( schema . schema ) ;
427
- decodedDataJson = JSON . stringify ( schemaEncoder . decodeData ( data ) ) ;
427
+ decodedDataJson = JSON . stringify ( schemaEncoder . decodeData ( data ) , ( _ , value ) =>
428
+ typeof value === "bigint" ? value . toString ( ) : value
429
+ ) ;
430
+
428
431
} catch ( error ) {
429
432
console . log ( "Error decoding data 53432" , error ) ;
430
433
}
@@ -876,7 +879,10 @@ export async function updateDbFromEthTransaction(txId: string) {
876
879
}
877
880
878
881
const schemaEncoder = new SchemaEncoder ( schema . schema ) ;
879
- decodedDataJson = JSON . stringify ( schemaEncoder . decodeData ( pkg . sig . message . data ) ) ;
882
+ decodedDataJson = JSON . stringify ( schemaEncoder . decodeData ( pkg . sig . message . data ) , ( _ , value ) =>
883
+ typeof value === "bigint" ? value . toString ( ) : value
884
+ ) ;
885
+
880
886
} catch ( error ) {
881
887
throw new Error ( "Error decoding offchain attestation data: " + error ) ;
882
888
}
You can’t perform that action at this time.
0 commit comments