mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 10:31:04 +00:00
Phragmen solution should submit for current era and be checked… (#5583)
* submit solution for current era * add test * address comment * fix tests
This commit is contained in:
@@ -2327,7 +2327,7 @@ impl<T: Trait> Module<T> {
|
||||
);
|
||||
|
||||
// check current era.
|
||||
if let Some(current_era) = Self::active_era().map(|e| e.index) {
|
||||
if let Some(current_era) = Self::current_era() {
|
||||
ensure!(
|
||||
current_era == era,
|
||||
Error::<T>::PhragmenEarlySubmission,
|
||||
|
||||
Reference in New Issue
Block a user