Skip to content

Commit

Permalink
reword the comment about the amount field
Browse files Browse the repository at this point in the history
  • Loading branch information
ecioppettini committed Jan 3, 2024
1 parent 6091cf4 commit cc5657f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/engine/paima-sm/src/cde-cardano-delayed-asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ export default async function processDatum(
const policy_id = cdeDatum.payload.policyId;
const asset_name = cdeDatum.payload.assetName;

// The amount is only set by carp when the utxo represents an output. This is
// because for inputs the amount is already known from before.
// The amount is only set by carp when the utxo is created. When the utxo is
// spent, the amount is null. If the utxo is an input the amount is already
// known, since the entry is in the db.
if (amount) {
return [
[
Expand Down

0 comments on commit cc5657f

Please sign in to comment.