Skip to content

Commit

Permalink
Update contract addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
AurevoirXavier committed Sep 10, 2024
1 parent fc3315e commit 9c0e921
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
11 changes: 4 additions & 7 deletions runtime/crab/src/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ fn migrate() -> frame_support::weights::Weight {
);

if let Ok(deposit) = array_bytes::hex_n_into::<_, AccountId, 20>(
"0xDeC9cD45e921F2AedE72f694743265af37d47Fa7",
"0x46275d29113f065c2aac262f34C7a3d8a8B7377D",
) {
let _ = <pallet_assets::Pallet<Runtime>>::set_team(
RuntimeOrigin::signed(dao),
Expand All @@ -74,15 +74,12 @@ fn migrate() -> frame_support::weights::Weight {
deposit,
dao,
);

<darwinia_deposit::DepositContract<Runtime>>::put(who);
}
}
if let Ok(who) =
array_bytes::hex_n_into::<_, AccountId, 20>("0xDeC9cD45e921F2AedE72f694743265af37d47Fa7")
{
<darwinia_deposit::DepositContract<Runtime>>::put(who);
}
if let Ok(who) =
array_bytes::hex_n_into::<_, AccountId, 20>("0xb037E75fE2BFA42DdDC17BB90963Dafe10A5Dd11")
array_bytes::hex_n_into::<_, AccountId, 20>("0xa4fFAC7A5Da311D724eD47393848f694Baee7930")
{
<darwinia_staking::RingStakingContract<Runtime>>::put(who);
}
Expand Down
11 changes: 4 additions & 7 deletions runtime/darwinia/src/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ fn migrate() -> frame_support::weights::Weight {
);

if let Ok(deposit) = array_bytes::hex_n_into::<_, AccountId, 20>(
"0xDeC9cD45e921F2AedE72f694743265af37d47Fa7",
"0x46275d29113f065c2aac262f34C7a3d8a8B7377D",
) {
let _ = <pallet_assets::Pallet<Runtime>>::set_team(
RuntimeOrigin::signed(dao),
Expand All @@ -82,15 +82,12 @@ fn migrate() -> frame_support::weights::Weight {
deposit,
dao,
);

<darwinia_deposit::DepositContract<Runtime>>::put(who);
}
}
if let Ok(who) =
array_bytes::hex_n_into::<_, AccountId, 20>("0xDeC9cD45e921F2AedE72f694743265af37d47Fa7")
{
<darwinia_deposit::DepositContract<Runtime>>::put(who);
}
if let Ok(who) =
array_bytes::hex_n_into::<_, AccountId, 20>("0xb037E75fE2BFA42DdDC17BB90963Dafe10A5Dd11")
array_bytes::hex_n_into::<_, AccountId, 20>("0xa4fFAC7A5Da311D724eD47393848f694Baee7930")
{
<darwinia_staking::RingStakingContract<Runtime>>::put(who);
}
Expand Down

0 comments on commit 9c0e921

Please sign in to comment.