Skip to content

Commit

Permalink
Update amount types and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gostkin committed Dec 15, 2023
1 parent 0adbda0 commit 3e47dfb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion indexer/tasks/src/multiera/multiera_projected_nft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}));
});

Expand Down
4 changes: 2 additions & 2 deletions webserver/shared/models/ProjectedNftRange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export type ProjectedNftRangeResponse = {
*
* @example 1
*/
amount: number,
amount: bigint,
/**
* Projected NFT status: Lock / Unlocking / Claim / Invalid
*
Expand All @@ -97,5 +97,5 @@ export type ProjectedNftRangeResponse = {
*
* @example 1701266986000
*/
forHowLong: number | null,
forHowLong: bigint | null,
}[];

0 comments on commit 3e47dfb

Please sign in to comment.