Add nullability to status String [skip ci]

This commit is contained in:
Omar Hatem 2022-12-06 17:29:44 +02:00 committed by GitHub
parent f29f17476c
commit fa5c705bc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -252,7 +252,7 @@ class SideShiftExchangeProvider extends ExchangeProvider {
String? status;
if (deposits?.isNotEmpty ?? false) {
status = deposits![0]['status'] as String;
status = deposits![0]['status'] as String?;
}
state = TradeState.deserialize(raw: status ?? 'created');