Skip to content

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

Merged
dmitrylavrenov merged 1 commit intolocked/polkadot-v0.9.42from
polkadot-v0.9.42-fix-casting
Dec 19, 2023
Merged

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

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 0168cdb into locked/polkadot-v0.9.42 Dec 19, 2023
@dmitrylavrenov dmitrylavrenov deleted the polkadot-v0.9.42-fix-casting branch December 19, 2023 11:20
dmitrylavrenov added a commit that referenced this pull request Feb 19, 2024
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 19, 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)

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
* Sovereign accounts and EVM system layer (#94)

* Sovereign accounts and EVM system layer (#86)

* Frame evm system (#62)

* Add initial impl of evm-system

* Check account existence

* Improve creation account logic

* Add new line

* Add default implementations

* Add mock

* Use DispatchResult instead of custom enums

* Basic create account tests

* Add simple tests with remove account and nonce update

* Remove default implementations for OnNewAccount and OnKilledAccount

* Add mock objects for OnNewAccount and OnKilledAccount

* Use mock logic in tests

* Some tests improvements

* Add docs to tests

* Check events in tests

* Add default implementation for OnNewAccount and OnKilledAccount for empty tuple (#63)

* Implement StoredMap for EvmSystem (#64)

* Add try-runtime feature into `pallet-evm-system` (#67)

Add try-runtime feature at pallet-evm-system

* Use `sp_std` library to add FromStr trait for tests at `pallet-evm-system` (#68)

Use sp_std library to add FromStr trait for tests at pallet-evm-system

* Rename FullAccount into Account at `pallet-evm-system` (#69)

Rename FullAccount into Account at pallet-evm-system

* Fix `try_mutate_exists` implementation and add tests to check it (#70)

* Fix try_mutate_exists logic

* Add tests

* Fix AccountData type at mock

* Remove redundant mock expectations

* Add comments for new tests

* More explicitly handle (none,false) case

* Rename some_data back to maybe_account_data

* Add data changes for try_mutate_exists_fails_without_changes test

* Add try_mutate_exists_account_not_created test

* Add assert_noop to check state chages

* Return success for try_mutate_exists_account_not_created test

* Use workspace deps

* Remove license

* Implement missed AccountProvider for EvmSystem

* Remove deprecated trait Store

* Add Apache-2.0 license

* Remove deprecated storage getter

* Remove redundant brackets
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