Skip to content

[pallet-transaction-storage] Remove ValidateUnsigned and replace with #[pallet::authorize #166

@bkontur

Description

@bkontur

We should be able to submit couple of unsigned extrinsics. Which is validate by ValidateUnsigned, but this is going to be deprecated: paritytech/polkadot-sdk#10150, for example here is an example: https://github.com/paritytech/polkadot-sdk/pull/6325/files#diff-dff2afa7433478e36eb66a9fe319efe28cfbdf95104b30b03afa0a1c4e3239f3R888-R893.

Let's focus here just one BulletinWestend runtime (it has already AuthorizeCall tx extension).

TODO

  • Remove ValidateUnsigned and replace with #[pallet::authorize+ reuse/refactor fn check_unsigned
  • Add some pallet tests
  • Add runtime test (construct_and_apply_extrinsic / construct_extrinsic already take sender: Option, I thought that setting it to None, will trigger unsigned extrinsic, but didn't work for me, maybe there is more fixing needed)

Sub-issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions