From 2eae99de94d537ca37bc14d7afab53b311ca84bf Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Thu, 28 Dec 2023 10:02:36 +0800 Subject: [PATCH] Add line break in council signed message --- crates/phactory/src/prpc_service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/phactory/src/prpc_service.rs b/crates/phactory/src/prpc_service.rs index 043a8d0ba..7148a9c13 100644 --- a/crates/phactory/src/prpc_service.rs +++ b/crates/phactory/src/prpc_service.rs @@ -2045,7 +2045,7 @@ impl PhactoryApi for Rpc let genesis_hash = hex::encode(runtime_state.genesis_block_hash); let mr_to = hex::encode(&request.measurement); let mr_from = hex::encode(my_measurement()?); - let signed_message = format!("Allow pRuntime to handover from 0x{mr_from} to 0x{mr_to} on chain of genesis 0x{genesis_hash}").into_bytes(); + let signed_message = format!("Allow pRuntime to handover\n from: 0x{mr_from}\n to: 0x{mr_to}\n genesis: 0x{genesis_hash}").into_bytes(); debug!("Signed message: {:?}", hex::encode(&signed_message)); let mut signers = std::collections::BTreeSet::new(); for sig in &request.signatures {