Skip to content

Fix casting usize to u8 at pallet::error macro (#91) (#95) (#99)#102

Merged
dmitrylavrenov merged 1 commit intolocked/polkadot-v0.9.43from
fix-cast-v0.9.43
Feb 19, 2024
Merged

Fix casting usize to u8 at pallet::error macro (#91) (#95) (#99)#102
dmitrylavrenov merged 1 commit intolocked/polkadot-v0.9.43from
fix-cast-v0.9.43

Conversation

@dmitrylavrenov
Copy link

Fix casting usize to u8 at pallet::error macro (reapplying 3f6bdf2) (#74) (#80)

  • Fix casting usize to u8 at pallet::error macro

  • Edit error message

Fix casting `usize` to `u8` at `pallet::error` macro (reapplying `3f6bdf2`) (#74) (#80)

* Fix casting usize to u8 at pallet::error macro

* Edit error message

Co-authored-by: MOZGIII <mike-n@narod.ru>
@dmitrylavrenov dmitrylavrenov merged commit 6587c79 into locked/polkadot-v0.9.43 Feb 19, 2024
@dmitrylavrenov dmitrylavrenov deleted the fix-cast-v0.9.43 branch February 19, 2024 08:56
dmitrylavrenov added a commit that referenced this pull request Jun 10, 2024
#102)

Fix casting `usize` to `u8` at `pallet::error` macro (reapplying `3f6bdf2`) (#74) (#80)

* Fix casting usize to u8 at pallet::error macro

* Edit error message

Co-authored-by: MOZGIII <mike-n@narod.ru>
dmitrylavrenov added a commit that referenced this pull request Jun 10, 2024
#102) (#103)

Fix casting `usize` to `u8` at `pallet::error` macro (reapplying `3f6bdf2`) (#74) (#80)

* Fix casting usize to u8 at pallet::error macro

* Edit error message

Co-authored-by: MOZGIII <mike-n@narod.ru>
dmitrylavrenov added a commit that referenced this pull request Feb 7, 2025
…r `pallet-evm-balances` (#102)

* Move currencies implementation into separate mod

* [substrate=apply] Deprecate Currency; introduce holds and freezing into fungible traits paritytech#12951

* Apply new balances logic to currency trait implementation

* Use DustRemoval over Credit instead of NegativeImbalance

* Implement Balanced, Unbalanced, Mutate fungible traits for pallet

* Revert using negative imbalance

* Apply formatter

* Fix withdraw_consequence method

* Move currency related tests to separate mod

* Add transfer_fails_funds_unavailable test to currency tests

* Add transfer_works_full_balance test to currency tests

* Fix slashing conditions

* Add slash_works_full_balance test to currency tests

* Add deposit_into_existing related fails tests

* Add withdraw_works_full_balance test to currency tests

* Add withdraw fails related tests to currency tests

* Add basic fungible tests

* Add reducable balance test to fungible tests

* Add can deposit related tests

* Fix can_withdraw logic

* Add can_withdraw related tests

* Add write_balance_works test

* Add set_total_issuance_works test

* Add decrease_balance related tests

* Add increase_balance related tests

* Add deactivate_reactivate_works test

* Add mint_into related tests

* Add burn_from related tests

* Add shelve related tests

* Add restored related tests

* Add transfer related tests

* Add balanced related tests

* Undo formatting

* Simplify reducible logic implementation

* Simplify can_deposit implementation

* Simplify can_withdraw implementation

* Properly use semantics of total and free balances

* Improve reducable_balance_works test

* Fix test race conditions
dmitrylavrenov added a commit that referenced this pull request Jun 16, 2025
#102)

Fix casting `usize` to `u8` at `pallet::error` macro (reapplying `3f6bdf2`) (#74) (#80)

* Fix casting usize to u8 at pallet::error macro

* Edit error message

Co-authored-by: MOZGIII <mike-n@narod.ru>
dmitrylavrenov added a commit that referenced this pull request Jun 16, 2025
#102) (#120)

Fix casting `usize` to `u8` at `pallet::error` macro (reapplying `3f6bdf2`) (#74) (#80)

* Fix casting usize to u8 at pallet::error macro

* Edit error message

Co-authored-by: MOZGIII <mike-n@narod.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant