Skip to content

Commit

Permalink
[send_tx_dart] try fix exception in extrinsic hash
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Oct 25, 2023
1 parent 831bd46 commit 23ea011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/service/tx/lib/src/send_tx_dart.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class EWAuthorApi<P extends Provider> {
final timestamp = await kusama.query.timestamp.now(at: blockHash);

// ignore: avoid_dynamic_calls
final xts = List<String>.from(block['block']['extrinsics'] as List<dynamic>);
final xts = (block['block']['extrinsics'] as List<dynamic>).cast<String>();
final xtIndex = xts.indexWhere((xt) => xtHash(xt) == hash);

if (xtIndex != -1) {
Expand Down

0 comments on commit 23ea011

Please sign in to comment.