mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 11:41:02 +00:00
Companion for https://github.com/paritytech/substrate/pull/7236 (#1773)
* Companion for https://github.com/paritytech/substrate/pull/7236 * "Update Substrate" Co-authored-by: parity-processbot <>
This commit is contained in:
Generated
+137
-137
File diff suppressed because it is too large
Load Diff
@@ -340,9 +340,10 @@ impl sp_externalities::ExtensionStore for ValidationExternalities {
|
|||||||
&mut self,
|
&mut self,
|
||||||
type_id: TypeId,
|
type_id: TypeId,
|
||||||
) -> Result<(), sp_externalities::Error> {
|
) -> Result<(), sp_externalities::Error> {
|
||||||
match self.0.deregister(type_id) {
|
if self.0.deregister(type_id) {
|
||||||
Some(_) => Ok(()),
|
Ok(())
|
||||||
None => Err(sp_externalities::Error::ExtensionIsNotRegistered(type_id))
|
} else {
|
||||||
|
Err(sp_externalities::Error::ExtensionIsNotRegistered(type_id))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user