polkawallet-io / sdk

polkawallet SDK for integrating substrate-based blockchain as a plugin.
Apache License 2.0
18 stars 24 forks source link

fix: 🐛 type cast error in apiTx.dart #18

Closed mekery closed 1 year ago

mekery commented 2 years ago

The bug produced when use signAndSend or estimateFees in apiTx.

I/flutter (22736): #0 ApiTx.signAndSend (package:polkawallet_sdk/api/apiTx.dart:53:7)I/flutter (22736): #1 I/flutter (22736): I/flutter (22736): type ‘Future<Map<dynamic, dynamic>?>’ is not a subtype of type ‘FutureOr<Map<dynamic, dynamic>>’ in type cast

poka-IT commented 1 year ago

fix here: https://github.com/polkawallet-io/sdk/pull/25/commits/b3897202d084fe8ecd419ec3bc125c077145f9a5

and here: https://github.com/polkawallet-io/sdk/pull/25/commits/9840c18ae82c185659647ee4614f70d4a1605249

RomeroYang commented 1 year ago

fixed