Skip to content

Commit

Permalink
add storage keys params to subscribe storage
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Nov 23, 2023
1 parent 12c3fef commit 2e67e32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/polkadart/lib/apis/state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,10 @@ class StateApi<P extends Provider> {

/// Subscribes to storage changes for the provided keys
Future<StreamSubscription<StorageChangeSet>> subscribeStorage(
List<Uint8List> storageKeys,
Function(StorageChangeSet) onData) async {
final subscription = await _provider.subscribe(
'state_subscribeStorage', const [], onCancel: (subscription) async {
'state_subscribeStorage', [storageKeys], onCancel: (subscription) async {
await _provider.send('state_unsubscribeStorage', [subscription]);
});

Expand Down

0 comments on commit 2e67e32

Please sign in to comment.