We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37582c8 commit 84e6cffCopy full SHA for 84e6cff
api/src/main/java/org/cardanofoundation/rosetta/api/block/mapper/TranToEntity.java
@@ -1,5 +1,7 @@
1
package org.cardanofoundation.rosetta.api.block.mapper;
2
3
+import java.math.BigInteger;
4
+import java.util.Optional;
5
import lombok.AllArgsConstructor;
6
7
import org.modelmapper.ModelMapper;
@@ -37,7 +39,7 @@ public BlockTx fromEntity(TxnEntity model) {
37
39
38
40
dest(ctx).setInputs(source(ctx).getInputKeys().stream().map(Utxo::fromUtxoKey).toList());
41
dest(ctx).setOutputs(source(ctx).getOutputKeys().stream().map(Utxo::fromUtxoKey).toList());
- dest(ctx).setFee(source(ctx).getFee().toString());
42
+ dest(ctx).setFee(Optional.ofNullable(source(ctx).getFee()).map(BigInteger::toString).orElse(null));
43
44
return dest(ctx);
45
0 commit comments