diff --git a/integration-tests/emulated/tests/people/people-kusama/src/tests/governance.rs b/integration-tests/emulated/tests/people/people-kusama/src/tests/governance.rs index 00c244d48d..6989223d2f 100644 --- a/integration-tests/emulated/tests/people/people-kusama/src/tests/governance.rs +++ b/integration-tests/emulated/tests/people/people-kusama/src/tests/governance.rs @@ -88,8 +88,10 @@ fn relay_commands_kill_identity() { let people_kusama_alice = ::RuntimeOrigin::signed(PeopleKusama::account_id_of(ALICE)); - let mut identity_info = ::default(); - identity_info.email = Data::Raw(b"test@test.io".to_vec().try_into().unwrap()); + let identity_info = IdentityInfo { + email: Data::Raw(b"test@test.io".to_vec().try_into().unwrap()), + ..Default::default() + }; let identity: Box<::IdentityInformation> = Box::new(identity_info); @@ -226,7 +228,7 @@ fn relay_commands_add_remove_username_authority() { assert_ok!(::Identity::set_username_for( ::RuntimeOrigin::signed(people_kusama_alice.clone()), people_kusama_runtime::MultiAddress::Id(people_kusama_bob.clone()), - usr.to_owned().into_bytes().try_into().unwrap(), + usr.to_owned().into_bytes(), None, )); diff --git a/integration-tests/emulated/tests/people/people-polkadot/src/tests/governance.rs b/integration-tests/emulated/tests/people/people-polkadot/src/tests/governance.rs index a6edf4a015..ced5a3f3d4 100644 --- a/integration-tests/emulated/tests/people/people-polkadot/src/tests/governance.rs +++ b/integration-tests/emulated/tests/people/people-polkadot/src/tests/governance.rs @@ -88,8 +88,10 @@ fn relay_commands_kill_identity() { let people_polkadot_alice = ::RuntimeOrigin::signed(PeoplePolkadot::account_id_of(ALICE)); - let mut identity_info = ::default(); - identity_info.email = Data::Raw(b"test@test.io".to_vec().try_into().unwrap()); + let identity_info = IdentityInfo { + email: Data::Raw(b"test@test.io".to_vec().try_into().unwrap()), + ..Default::default() + }; let identity: Box<::IdentityInformation> = Box::new(identity_info); @@ -228,7 +230,7 @@ fn relay_commands_add_remove_username_authority() { assert_ok!(::Identity::set_username_for( ::RuntimeOrigin::signed(people_polkadot_alice.clone()), people_polkadot_runtime::MultiAddress::Id(people_polkadot_bob.clone()), - usr.to_owned().into_bytes().try_into().unwrap(), + usr.to_owned().into_bytes(), None, ));