mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 23:57:56 +00:00
feat: compute pallet/storage prefix hash at compile time (#1539)
Since the hash rules of this part of the `pallet_prefix/storage_prefix` are always fixed, we can put the runtime calculation into compile time. --- polkadot address: 15ouFh2SHpGbHtDPsJ6cXQfes9Cx1gEFnJJsJVqPGzBSTudr --------- Co-authored-by: Juan <juangirini@gmail.com> Co-authored-by: command-bot <> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
@@ -489,7 +489,7 @@ fn test_last_reward_migration() {
|
||||
s.top = data.into_iter().collect();
|
||||
|
||||
sp_io::TestExternalities::new(s).execute_with(|| {
|
||||
let module = pallet_tips::Tips::<Test>::module_prefix();
|
||||
let module = pallet_tips::Tips::<Test>::pallet_prefix();
|
||||
let item = pallet_tips::Tips::<Test>::storage_prefix();
|
||||
Tips::migrate_retract_tip_for_tip_new(module, item);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user