mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 22:11:06 +00:00
fix deprecated usage of panic (#8134)
This commit is contained in:
committed by
GitHub
parent
ed9c08dd01
commit
f49aae65a8
@@ -224,7 +224,7 @@ pub enum PublicError {
|
||||
|
||||
/// Key that can be encoded to/from SS58.
|
||||
///
|
||||
/// See https://github.com/paritytech/substrate/wiki/External-Address-Format-(SS58)#address-type
|
||||
/// See <https://github.com/paritytech/substrate/wiki/External-Address-Format-(SS58)#address-type>
|
||||
/// for information on the codec.
|
||||
#[cfg(feature = "full_crypto")]
|
||||
pub trait Ss58Codec: Sized + AsMut<[u8]> + AsRef<[u8]> + Default {
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
//! Hashing functions.
|
||||
//!
|
||||
//! This module is gated by `full-crypto` feature. If you intend to use any of the functions
|
||||
//! defined here within your runtime, you should most likely rather use [sp_io::hashing] instead,
|
||||
//! defined here within your runtime, you should most likely rather use `sp_io::hashing` instead,
|
||||
//! unless you know what you're doing. Using `sp_io` will be more performant, since instead of
|
||||
//! computing the hash in WASM it delegates that computation to the host client.
|
||||
|
||||
|
||||
@@ -424,7 +424,7 @@ pub trait ProvideInherent {
|
||||
/// - `Err(_)` indicates that this function failed and further operations should be aborted.
|
||||
///
|
||||
/// CAUTION: This check has a bug when used in pallets that also provide unsigned transactions.
|
||||
/// See https://github.com/paritytech/substrate/issues/6243 for details.
|
||||
/// See <https://github.com/paritytech/substrate/issues/6243> for details.
|
||||
fn is_inherent_required(_: &InherentData) -> Result<Option<Self::Error>, Self::Error> { Ok(None) }
|
||||
|
||||
/// Check whether the given inherent is valid. Checking the inherent is optional and can be
|
||||
|
||||
Reference in New Issue
Block a user