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:
Shawn TabriziandGavin Wood authored and GitHub committed 2020-03-14 12:44:48 +01:00
1 parent 7285cbc801
commit 74f8db5def
16 files changed
+246 -11

No files matched your search

+6 -1
View File
@@ -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.