From 3186a88a9f2c353470d89e85f7573c8e9e093187 Mon Sep 17 00:00:00 2001 From: Jernej Kos Date: Wed, 13 Sep 2023 14:14:19 +0200 Subject: [PATCH] runtime-sdk/modules/evm: Bump version to v2 --- runtime-sdk/modules/evm/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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)