Fix gift card purchase (#553)

* Fix gift card purchase

* cast as optional bool
This commit is contained in:
Godwin Asuquo
2022-10-24 15:27:10 -04:00
committed by GitHub
parent d9415af4de
commit 9f187308d4
+2 -2
View File
@@ -17,8 +17,8 @@ class AnyPayPaymentInstruction {
return AnyPayPaymentInstruction(
type: obj['type'] as String,
requiredFeeRate: obj['requiredFeeRate'] as int,
txKey: obj['tx_key'] as bool,
txHash: obj['tx_hash'] as bool,
txKey: obj['tx_key'] as bool? ?? false,
txHash: obj['tx_hash'] as bool? ?? false,
outputs: outputs);
}