Fix gift card purchase (#553)

* Fix gift card purchase

* cast as optional bool
This commit is contained in:
Godwin Asuquo 2022-10-24 22:27:10 +03:00 committed by GitHub
parent d9415af4de
commit 9f187308d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,8 +17,8 @@ class AnyPayPaymentInstruction {
return AnyPayPaymentInstruction( return AnyPayPaymentInstruction(
type: obj['type'] as String, type: obj['type'] as String,
requiredFeeRate: obj['requiredFeeRate'] as int, requiredFeeRate: obj['requiredFeeRate'] as int,
txKey: obj['tx_key'] as bool, txKey: obj['tx_key'] as bool? ?? false,
txHash: obj['tx_hash'] as bool, txHash: obj['tx_hash'] as bool? ?? false,
outputs: outputs); outputs: outputs);
} }