mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-12 13:47:07 +00:00
Pay trait gets Error item (#14258)
* `Pay` trait gets `Error` item * Formatting
This commit is contained in:
1 parent
cb533ffa98
commit
c40a4cc139
3 files changed
+11
-6
No files matched your search
@@ -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