diff --git a/pallet/account-migration/src/lib.rs b/pallet/account-migration/src/lib.rs index fa3f2bee..964b8e6e 100644 --- a/pallet/account-migration/src/lib.rs +++ b/pallet/account-migration/src/lib.rs @@ -334,13 +334,13 @@ pub enum ExistenceReason { /// Build a Darwinia account migration message. pub fn sr25519_signable_message(spec_name: &[u8], account_id_20: &AccountId20) -> Vec { [ - b"I authorize the migration to ", + b"I authorize the migration to ", array_bytes::bytes2hex("0x", account_id_20.0).as_bytes(), b", an unused address on ", spec_name, b". Sign this message to authorize using the Substrate key associated with the account on ", &spec_name[..spec_name.len() - 1], - b" that you wish to migrate.", + b" that you wish to migrate.", ] .concat() } diff --git a/pallet/account-migration/src/tests.rs b/pallet/account-migration/src/tests.rs index d8eb1842..f4f03372 100644 --- a/pallet/account-migration/src/tests.rs +++ b/pallet/account-migration/src/tests.rs @@ -27,7 +27,7 @@ fn sr25519_signable_message_should_work() { assert_eq!( sr25519_signable_message(s.as_bytes(), &Default::default()), format!( - "I authorize the migration to {}, an unused address on {}. Sign this message to authorize using the Substrate key associated with the account on {} that you wish to migrate.", + "I authorize the migration to {}, an unused address on {}. Sign this message to authorize using the Substrate key associated with the account on {} that you wish to migrate.", "0x0000000000000000000000000000000000000000", s, &s[..s.len() - 1],