Skip to content

Commit

Permalink
Remove associated_type_defaults making Sovereign SDK stable compati…
Browse files Browse the repository at this point in the history
…ble (#649)
  • Loading branch information
citizen-stig authored and preston-evans98 committed Sep 14, 2023
1 parent b0e76dd commit 228b05c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ impl<C: sov_modules_api::Context> BlobStorage<C> {
impl<C: sov_modules_api::Context> Module for BlobStorage<C> {
type Context = C;
type Config = ();
type CallMessage = sov_modules_api::NonInstantiable;
}
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ impl<Ctx: sov_modules_api::Context, Cond: ValidityCondition> sov_modules_api::Mo

type Config = ChainStateConfig;

type CallMessage = sov_modules_api::NonInstantiable;

fn genesis(
&self,
config: &Self::Config,
Expand Down
4 changes: 2 additions & 2 deletions module-system/sov-modules-api/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![feature(associated_type_defaults)]
#![doc = include_str!("../README.md")]

mod bech32;
pub mod default_context;
Expand Down Expand Up @@ -294,7 +294,7 @@ pub trait Module {
type Config;

/// Module defined argument to the call method.
type CallMessage: Debug + BorshSerialize + BorshDeserialize = NonInstantiable;
type CallMessage: Debug + BorshSerialize + BorshDeserialize;

/// Genesis is called when a rollup is deployed and can be used to set initial state values in the module.
fn genesis(
Expand Down

0 comments on commit 228b05c

Please sign in to comment.