diff --git a/indexer/tasks/src/multiera/multiera_projected_nft.rs b/indexer/tasks/src/multiera/multiera_projected_nft.rs index 9f739f98..2fb21fd4 100644 --- a/indexer/tasks/src/multiera/multiera_projected_nft.rs +++ b/indexer/tasks/src/multiera/multiera_projected_nft.rs @@ -124,7 +124,7 @@ async fn handle_projected_nft( let mut queued_projected_nft_records = vec![]; for (tx_body, cardano_transaction) in block.1.txs().iter().zip(multiera_txs) { - // redeemers are needed to identify whil of the projected nfts are partial withdrawals + // redeemers are needed to identify which of the projected nfts are partial withdrawals let redeemers = tx_body .redeemers() .map(get_projected_nft_redeemers) diff --git a/webserver/server/app/controllers/ProjectedNftRangeController.ts b/webserver/server/app/controllers/ProjectedNftRangeController.ts index cbd5e589..76db9c7e 100644 --- a/webserver/server/app/controllers/ProjectedNftRangeController.ts +++ b/webserver/server/app/controllers/ProjectedNftRangeController.ts @@ -38,11 +38,11 @@ export class ProjectedNftRangeController extends Controller { actionTxId: data.action_tx_id, actionOutputIndex: data.action_output_index, asset: data.asset, - amount: parseInt(data.amount), + amount: BigInt(data.amount), status: data.status, plutusDatum: data.plutus_datum, actionSlot: data.action_slot, - forHowLong: data.for_how_long != null ? parseInt(data.for_how_long) : null, + forHowLong: data.for_how_long != null ? BigInt(data.for_how_long) : null, })); }); diff --git a/webserver/shared/models/ProjectedNftRange.ts b/webserver/shared/models/ProjectedNftRange.ts index aefce71c..37cf49d8 100644 --- a/webserver/shared/models/ProjectedNftRange.ts +++ b/webserver/shared/models/ProjectedNftRange.ts @@ -77,7 +77,7 @@ export type ProjectedNftRangeResponse = { * * @example 1 */ - amount: number, + amount: bigint, /** * Projected NFT status: Lock / Unlocking / Claim / Invalid * @@ -97,5 +97,5 @@ export type ProjectedNftRangeResponse = { * * @example 1701266986000 */ - forHowLong: number | null, + forHowLong: bigint | null, }[]; \ No newline at end of file