Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Season 2 - Fix forging out of season #320

Merged
merged 1 commit into from
Jun 28, 2023
Merged

Conversation

DidacSF
Copy link
Contributor

@DidacSF DidacSF commented Jun 28, 2023

Description

Changes season_id reference point to be the leader avatar in the forge instead of the current season.

Type of changes

  • build: Changes that affect the build system or external dependencies (eg, Cargo, Docker)
  • ci: Changes to CI configuration
  • docs: Changes to documentation only
  • feat: Changes to add a new feature
  • fix: Changes to fix a bug
  • refactor: Changes that do not alter functionality
  • style: Changes to format the code
  • test: Changes to add missing tests or correct existing tests

Checklist

  • Tests for the changes have been added
  • Necessary documentation is added (if appropriate)
  • Formatted with cargo fmt --all
  • Linted with cargo clippy --all-features --all-targets
  • Tested with cargo test --workspace --all-features --all-targets

@DidacSF DidacSF requested a review from darkfriend77 June 28, 2023 12:55
@codecov
Copy link

codecov bot commented Jun 28, 2023

Codecov Report

Patch coverage: 90.00% and project coverage change: +0.02 🎉

Comparison is base (1f852d0) 70.70% compared to head (6512337) 70.72%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #320      +/-   ##
===========================================
+ Coverage    70.70%   70.72%   +0.02%     
===========================================
  Files           33       33              
  Lines         3379     3382       +3     
===========================================
+ Hits          2389     2392       +3     
  Misses         990      990              
Impacted Files Coverage Δ
pallets/ajuna-awesome-avatars/src/lib.rs 82.63% <90.00%> (+0.09%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@darkfriend77 darkfriend77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay

@@ -1287,7 +1293,7 @@ pub mod pallet {
.iter()
.map(|id| {
let avatar = Self::ensure_ownership(player, id)?;
ensure!(avatar.season_id == *season_id, Error::<T>::IncorrectAvatarSeason);
ensure!(avatar.season_id == season_id, Error::<T>::IncorrectAvatarSeason);
ensure!(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would assume this check is not needed since, the encoding of an avatar from the same season must be the same any way since in one season you can only mint one type of encoding

@darkfriend77 darkfriend77 merged commit a79e26f into develop Jun 28, 2023
@darkfriend77 darkfriend77 deleted the ds/fix-forging-reference branch June 28, 2023 13:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants