Skip to content

Commit

Permalink
Always construct UTXOs with BigInt instead of string or number
Browse files Browse the repository at this point in the history
  • Loading branch information
Quantumplation committed Aug 11, 2024
1 parent 2569a35 commit ff6e6f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hydra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,11 @@ function hydraUtxoToLucidUtxo(txHash: TxHash, idx: number, output: any): UTxO {
: output.inlineDatum?.Data?.original;
const assets = output.amount
? {
lovelace: output.amount.coin ?? 0n,
lovelace: BigInt(output.amount.coin ?? 0n),
...output.amount.multiasset,
}
: {
lovelace: output.value.lovelace ?? 0n,
lovelace: BigInt(output.value.lovelace ?? 0n),
};
return {
address: output.address,
Expand Down

0 comments on commit ff6e6f9

Please sign in to comment.