Make wildcard storage change subscriptions RPC-unsafe (#11259)

* When an RPC is rejected because it's RPC-unsafe say why in the error message

* Make wildcard storage change subscriptions RPC-unsafe

* Apply suggestions from code review

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Fix typo

* Fix tests

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
Koute
2022-04-27 14:35:52 +09:00
committed by GitHub
parent dcc8387dfa
commit 3890fd4cb2
6 changed files with 61 additions and 6 deletions
+1 -1
View File
@@ -279,7 +279,7 @@ mod tests {
let res = accounts.dry_run(vec![].into(), None);
// then
assert_eq!(block_on(res), Err(RpcError::method_not_found()));
assert_eq!(block_on(res), Err(sc_rpc_api::UnsafeRpcError.into()));
}
#[test]