From 07399f061a99fce19f7febc65e705948cef550cb Mon Sep 17 00:00:00 2001 From: Xavier Lau Date: Fri, 20 Sep 2024 11:51:00 +0800 Subject: [PATCH] Update contract addresses (#1592) Signed-off-by: Xavier Lau --- runtime/crab/src/migration.rs | 11 ++++------- runtime/darwinia/src/migration.rs | 11 ++++------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/runtime/crab/src/migration.rs b/runtime/crab/src/migration.rs index 1c89863ce..1522934cb 100644 --- a/runtime/crab/src/migration.rs +++ b/runtime/crab/src/migration.rs @@ -65,7 +65,7 @@ fn migrate() -> frame_support::weights::Weight { ); if let Ok(deposit) = array_bytes::hex_n_into::<_, AccountId, 20>( - "0xDeC9cD45e921F2AedE72f694743265af37d47Fa7", + "0x46275d29113f065c2aac262f34C7a3d8a8B7377D", ) { let _ = >::set_team( RuntimeOrigin::signed(dao), @@ -74,15 +74,12 @@ fn migrate() -> frame_support::weights::Weight { deposit, dao, ); + + >::put(deposit); } } if let Ok(who) = - array_bytes::hex_n_into::<_, AccountId, 20>("0xDeC9cD45e921F2AedE72f694743265af37d47Fa7") - { - >::put(who); - } - if let Ok(who) = - array_bytes::hex_n_into::<_, AccountId, 20>("0xb037E75fE2BFA42DdDC17BB90963Dafe10A5Dd11") + array_bytes::hex_n_into::<_, AccountId, 20>("0xa4fFAC7A5Da311D724eD47393848f694Baee7930") { >::put(who); } diff --git a/runtime/darwinia/src/migration.rs b/runtime/darwinia/src/migration.rs index 640b455fa..ff8444450 100644 --- a/runtime/darwinia/src/migration.rs +++ b/runtime/darwinia/src/migration.rs @@ -73,7 +73,7 @@ fn migrate() -> frame_support::weights::Weight { ); if let Ok(deposit) = array_bytes::hex_n_into::<_, AccountId, 20>( - "0xDeC9cD45e921F2AedE72f694743265af37d47Fa7", + "0x46275d29113f065c2aac262f34C7a3d8a8B7377D", ) { let _ = >::set_team( RuntimeOrigin::signed(dao), @@ -82,15 +82,12 @@ fn migrate() -> frame_support::weights::Weight { deposit, dao, ); + + >::put(deposit); } } if let Ok(who) = - array_bytes::hex_n_into::<_, AccountId, 20>("0xDeC9cD45e921F2AedE72f694743265af37d47Fa7") - { - >::put(who); - } - if let Ok(who) = - array_bytes::hex_n_into::<_, AccountId, 20>("0xb037E75fE2BFA42DdDC17BB90963Dafe10A5Dd11") + array_bytes::hex_n_into::<_, AccountId, 20>("0xa4fFAC7A5Da311D724eD47393848f694Baee7930") { >::put(who); }