diff --git a/runtime-sdk/modules/evm/src/lib.rs b/runtime-sdk/modules/evm/src/lib.rs index 017b17282e..3740c24e0a 100644 --- a/runtime-sdk/modules/evm/src/lib.rs +++ b/runtime-sdk/modules/evm/src/lib.rs @@ -664,6 +664,7 @@ impl Module { #[sdk_derive(Module)] impl Module { const NAME: &'static str = MODULE_NAME; + const VERSION: u32 = 2; type Error = Error; type Event = Event; type Parameters = Parameters; @@ -675,6 +676,11 @@ impl Module { Self::set_params(genesis.parameters); } + #[migration(from = 1)] + fn migrate_v1_to_v2() { + // No state migration is needed for v2. + } + #[handler(call = "evm.Create")] fn tx_create(ctx: &mut C, body: types::Create) -> Result, Error> { Self::create(ctx, body.value, body.init_code)