Fix gift card purchase (#553)
* Fix gift card purchase * cast as optional bool
Godwin Asuquo committed
Oct 24, 2022 at 22:27 UTC
9f187308d4a68c0fef36d881eefd096228154b74
1 file changed
+2
-2
lib/anypay/any_pay_payment_instruction.dart
+2
-2
@@ -17,8 +17,8 @@ class AnyPayPaymentInstruction {
17
return AnyPayPaymentInstruction(
18
type: obj['type'] as String,
19
requiredFeeRate: obj['requiredFeeRate'] as int,
20
- txKey: obj['tx_key'] as bool,
21
- txHash: obj['tx_hash'] as bool,
20
+ txKey: obj['tx_key'] as bool? ?? false,
21
+ txHash: obj['tx_hash'] as bool? ?? false,
22
outputs: outputs);
23
}
24