improve storage build type checking (#1914)
* force build closure in decl_storage! to return explicit type * fix when type was different Note: it breaks API but it is easy to upgrade: just do the conversion from encode type to the final type yourself in the build closure: ```rust Encode::using_encoded(&value, |mut value| Decode::decode(&mut v)).unwrap(); ```
Showing
- substrate/core/test-runtime/wasm/target/wasm32-unknown-unknown/release/substrate_test_runtime.compact.wasm 0 additions, 0 deletions...known-unknown/release/substrate_test_runtime.compact.wasm
- substrate/node/runtime/src/lib.rs 1 addition, 1 deletionsubstrate/node/runtime/src/lib.rs
- substrate/node/runtime/wasm/target/wasm32-unknown-unknown/release/node_runtime.compact.wasm 0 additions, 0 deletions.../wasm32-unknown-unknown/release/node_runtime.compact.wasm
- substrate/srml/council/src/voting.rs 1 addition, 1 deletionsubstrate/srml/council/src/voting.rs
- substrate/srml/support/procedural/src/storage/transformation.rs 0 additions, 4 deletions...ate/srml/support/procedural/src/storage/transformation.rs
- substrate/srml/system/src/lib.rs 11 additions, 4 deletionssubstrate/srml/system/src/lib.rs
Please register or sign in to comment