Skip to content

Commit

Permalink
fix: ValueTransferInfo timelocks
Browse files Browse the repository at this point in the history
  • Loading branch information
parodyBit committed Apr 4, 2024
1 parent 8612848 commit d388d41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/network/explorer/explorer_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1739,12 +1739,13 @@ class ValueTransferInfo extends HashInfo {
factory ValueTransferInfo.fromJson(Map<String, dynamic> data) {
List<String> outputAddresses = getOrDefault(data).outputAddresses;
List<int> outputValues = getOrDefault(data).outputValues;
List<int> timelockValues = getOrDefault(data).timelocks;
List<ValueTransferOutput> outputs = [];
for (int i = 0; i < outputValues.length; i++) {
ValueTransferOutput vto = ValueTransferOutput(
value: outputValues[i],
pkh: Address.fromAddress(outputAddresses[i]).publicKeyHash!,
timeLock: 0,
timeLock: timelockValues[i],
);
outputs.add(vto);
}
Expand Down

0 comments on commit d388d41

Please sign in to comment.