Skip to content

Commit

Permalink
chore: update witnet.dart to 0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Mar 13, 2024
1 parent a663522 commit a8a0487
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 0 additions & 4 deletions lib/util/storage/database/adapters/transaction_adapter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,8 @@ extension ValueTransferAdapter on ValueTransferInfo {
static ValueTransferInfo fromJson(Map<String, dynamic> data) {
bool dbJson = data["epoch"] == null;
if (dbJson) {
print('------FROM DB JSON--------');
return fromDBJson(data);
} else {
print('------FROM EXPLORER JSON------');
return ValueTransferInfo.fromJson(data);
}
}
Expand Down Expand Up @@ -376,7 +374,6 @@ class NullableFields {
}

NullableFields getOrDefault(Map<String, dynamic> data) {
print('-----get or default-----');
return NullableFields(
value: data["value"] ?? null,
confirmed: data["confirmed"] ??
Expand All @@ -386,7 +383,6 @@ NullableFields getOrDefault(Map<String, dynamic> data) {
inputAddresses: data["input_addresses"] != null
? List<String>.from(data["input_addresses"])
: List<String>.from(data["inputs"].map((input) {
print('inout address:: ${input}');
return input['pkh'];
}).toList()),
inputsMerged: data["inputs_merged"] != null
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/transaction_details.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class TransactionDetails extends StatelessWidget {
ThemeData theme, ValueTransferOutput output, bool isLastOutput) {
final extendedTheme = theme.extension<ExtendedTheme>()!;
Widget timelock = SizedBox(height: 0);
//TODO(#505): Support timelocks
//TODO(#505): Support timelocks
// if (output.timeLock != 0) {
// timelock = Expanded(
// child: Column(
Expand Down
3 changes: 1 addition & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ dependencies:
flutter_launcher_icons: ^0.13.1
sliding_up_panel: ^2.0.0+1
decimal: 2.3.3
witnet:
path: ../witnet.dart
witnet: 0.4.1
path_provider: ^2.0.8
permission_handler: ^11.0.1
open_file: ^3.3.2
Expand Down

0 comments on commit a8a0487

Please sign in to comment.