mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 21:31:04 +00:00
Pay trait gets Error item (#14258)
* `Pay` trait gets `Error` item * Formatting
This commit is contained in:
@@ -436,8 +436,8 @@ pub mod pallet {
|
||||
|
||||
claimant.last_active = status.cycle_index;
|
||||
|
||||
let id = T::Paymaster::pay(&beneficiary, (), payout)
|
||||
.map_err(|()| Error::<T, I>::PayError)?;
|
||||
let id =
|
||||
T::Paymaster::pay(&beneficiary, (), payout).map_err(|_| Error::<T, I>::PayError)?;
|
||||
|
||||
claimant.status = Attempted { registered, id, amount: payout };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user