Companion for #9085 (pub calls) (#3214)

* update to use pub dispatchables

* update Substrate

* Update claims.rs

* remove warning

Co-authored-by: parity-processbot <>
This commit is contained in:
Shawn Tabrizi
2021-06-12 19:13:16 +01:00
committed by GitHub
parent 097cadca19
commit 7f344df160
7 changed files with 175 additions and 182 deletions
+5 -5
View File
@@ -281,7 +281,7 @@ pub mod pallet {
/// Total Complexity: O(1)
/// </weight>
#[pallet::weight(T::WeightInfo::claim())]
pub(super) fn claim(
pub fn claim(
origin: OriginFor<T>,
dest: T::AccountId,
ethereum_signature: EcdsaSignature
@@ -313,7 +313,7 @@ pub mod pallet {
/// Total Complexity: O(1)
/// </weight>
#[pallet::weight(T::WeightInfo::mint_claim())]
pub(super) fn mint_claim(
pub fn mint_claim(
origin: OriginFor<T>,
who: EthereumAddress,
value: BalanceOf<T>,
@@ -360,7 +360,7 @@ pub mod pallet {
/// Total Complexity: O(1)
/// </weight>
#[pallet::weight(T::WeightInfo::claim_attest())]
pub(super) fn claim_attest(
pub fn claim_attest(
origin: OriginFor<T>,
dest: T::AccountId,
ethereum_signature: EcdsaSignature,
@@ -400,7 +400,7 @@ pub mod pallet {
DispatchClass::Normal,
Pays::No
))]
pub(super) fn attest(origin: OriginFor<T>, statement: Vec<u8>) -> DispatchResult {
pub fn attest(origin: OriginFor<T>, statement: Vec<u8>) -> DispatchResult {
let who = ensure_signed(origin)?;
let signer = Preclaims::<T>::get(&who).ok_or(Error::<T>::SenderHasNoClaim)?;
if let Some(s) = Signing::<T>::get(signer) {
@@ -412,7 +412,7 @@ pub mod pallet {
}
#[pallet::weight(T::WeightInfo::move_claim())]
pub(super) fn move_claim(
pub fn move_claim(
origin: OriginFor<T>,
old: EthereumAddress,
new: EthereumAddress,