Skip to content

Conversation

@rflechtner
Copy link
Contributor

@rflechtner rflechtner commented Nov 20, 2024

re/ https://github.com/KILTprotocol/ticket/issues/3671

Tests the three destruction extrinsics. All tests passing rn.

To be rebased after merging #791.

Checklist:

  • I have verified that the code works
    • No panics! (checked arithmetic ops, no indexing array[3] use get(3), ...)
  • I have verified that the code is easy to understand
    • If not, I have left a well-balanced amount of inline comments
  • I have left the code in a better state
  • I have documented the changes (where applicable)
    • Either PR or Ticket to update the Docs
    • Link the PR/Ticket here

@rflechtner rflechtner requested a review from Ad96el November 20, 2024 17:05
@rflechtner rflechtner marked this pull request as ready for review November 21, 2024 18:19
Copy link
Contributor

@Ad96el Ad96el left a comment

Choose a reason for hiding this comment

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

LGTM. One style suggestion.


// Verify that the pool state has been updated to destroying
let updated_pool = Pools::<Test>::get(&pool_id).unwrap();
assert!(matches!(updated_pool.state, PoolStatus::Destroying));
Copy link
Contributor

Choose a reason for hiding this comment

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

assert_eq! would look simpler. Same for the others further below

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Base automatically changed from rf-test-mint-and-burn to pallet_bonded_coins November 25, 2024 12:31
@rflechtner rflechtner merged commit f93adec into pallet_bonded_coins Nov 25, 2024
2 of 7 checks passed
@rflechtner rflechtner deleted the rf-test-destroy branch November 25, 2024 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants