mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 15:11:03 +00:00
Assign unique storage names to pallets. (#5010)
* Assign unique storage names to pallets. * Bump spec * Upgrade logic for finality tracker (untested) * Logic for migrating Identity (untested) * Logic for migrating transaction-payment * Fix tests * Fix `decl_storage` build * Contract -> Contracts * Update Cargo.lock * bump spec * update migration * Fix merge error * Migration for contracts * Remove serde * Remove some illegal spaces and Options * Fix types in identity. * Minor variable rename Co-authored-by: Gavin Wood <gavin@parity.io>
This commit is contained in:
@@ -98,6 +98,7 @@ mod rent;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
mod migration;
|
||||
|
||||
use crate::exec::ExecutionContext;
|
||||
use crate::account_db::{AccountDb, DirectAccountDb};
|
||||
@@ -666,6 +667,10 @@ decl_module! {
|
||||
fn on_finalize() {
|
||||
GasSpent::kill();
|
||||
}
|
||||
|
||||
fn on_runtime_upgrade() {
|
||||
migration::on_runtime_upgrade::<T>()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -923,7 +928,7 @@ decl_event! {
|
||||
}
|
||||
|
||||
decl_storage! {
|
||||
trait Store for Module<T: Trait> as Contract {
|
||||
trait Store for Module<T: Trait> as Contracts {
|
||||
/// Gas spent so far in this block.
|
||||
GasSpent get(fn gas_spent): Gas;
|
||||
/// Current cost schedule for contracts.
|
||||
|
||||
Reference in New Issue
Block a user