mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +00:00
* fix benchmark return * update weight * update Substrate Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -1415,7 +1415,7 @@ mod benchmarking {
|
||||
let source = sp_runtime::transaction_validity::TransactionSource::External;
|
||||
let call = Call::<T>::claim(account.clone(), signature.clone());
|
||||
}: {
|
||||
super::Pallet::<T>::validate_unsigned(source, &call)?;
|
||||
super::Pallet::<T>::validate_unsigned(source, &call).map_err(|e| -> &'static str { e.into() })?;
|
||||
super::Pallet::<T>::claim(RawOrigin::None.into(), account, signature)?;
|
||||
}
|
||||
verify {
|
||||
@@ -1461,7 +1461,7 @@ mod benchmarking {
|
||||
let call = Call::<T>::claim_attest(account.clone(), signature.clone(), StatementKind::Regular.to_text().to_vec());
|
||||
let source = sp_runtime::transaction_validity::TransactionSource::External;
|
||||
}: {
|
||||
super::Pallet::<T>::validate_unsigned(source, &call)?;
|
||||
super::Pallet::<T>::validate_unsigned(source, &call).map_err(|e| -> &'static str { e.into() })?;
|
||||
super::Pallet::<T>::claim_attest(RawOrigin::None.into(), account, signature, statement.to_text().to_vec())?;
|
||||
}
|
||||
verify {
|
||||
|
||||
Reference in New Issue
Block a user