mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-24 17:05:47 +00:00
Normalize Crate Names in SRML/Node Template (#3543)
* Fix some instances of `runtime-io` * Patch a bunch * More patches for consistancy * more patch * Fix various build issues * Fix tests * Patch `srml-support-*` crates * Fix doc tests * Revert "Fix doc tests" This reverts commit ba2ec61da7acc36821a70e76a31a6a5bf13bbe95. * Revert "Patch `srml-support-*` crates" This reverts commit 9a6070450107dec17784ba34af4b871023f6dc81. * Missed one * Fix doc tests
This commit is contained in:
@@ -10,14 +10,14 @@ codec = { package = "parity-scale-codec", version = "1.0.0", default-features =
|
||||
# Needed for various traits. In our case, `OnFinalize`.
|
||||
sr-primitives = { path = "../../core/sr-primitives", default-features = false }
|
||||
# Needed for type-safe access to storage DB.
|
||||
srml-support = { path = "../support", default-features = false }
|
||||
support = { package = "srml-support", path = "../support", default-features = false }
|
||||
# `system` module provides us with all sorts of useful stuff and macros depend on it being around.
|
||||
system = { package = "srml-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
primitives = { package = "substrate-primitives", path = "../../core/primitives" }
|
||||
rstd = { package = "sr-std", path = "../../core/sr-std" }
|
||||
runtime_io = { package = "sr-io", path = "../../core/sr-io" }
|
||||
runtime-io = { package = "sr-io", path = "../../core/sr-io" }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
@@ -25,6 +25,6 @@ std = [
|
||||
"serde",
|
||||
"codec/std",
|
||||
"sr-primitives/std",
|
||||
"srml-support/std",
|
||||
"support/std",
|
||||
"system/std",
|
||||
]
|
||||
|
||||
@@ -130,7 +130,7 @@
|
||||
// Ensure we're `no_std` when compiling for Wasm.
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
use srml_support::{StorageValue, StorageMap, Parameter, decl_module, decl_event, decl_storage, ensure};
|
||||
use support::{StorageValue, StorageMap, Parameter, decl_module, decl_event, decl_storage, ensure};
|
||||
use sr_primitives::traits::{Member, SimpleArithmetic, Zero, StaticLookup};
|
||||
use system::ensure_signed;
|
||||
use sr_primitives::traits::One;
|
||||
@@ -240,7 +240,7 @@ mod tests {
|
||||
use super::*;
|
||||
|
||||
use runtime_io::with_externalities;
|
||||
use srml_support::{impl_outer_origin, assert_ok, assert_noop, parameter_types};
|
||||
use support::{impl_outer_origin, assert_ok, assert_noop, parameter_types};
|
||||
use primitives::{H256, Blake2Hasher};
|
||||
// The testing primitives are very useful for avoiding having to work with signatures
|
||||
// or public keys. `u64` is used as the `AccountId` and no `Signature`s are required.
|
||||
|
||||
Reference in New Issue
Block a user