Skip to content

Commit

Permalink
Fixed message signed by relay (paritytech#515)
Browse files Browse the repository at this point in the history
* fixed message that is signed by relay

* clippy
  • Loading branch information
svyatonik authored and serban300 committed Apr 9, 2024
1 parent 6b8bdee commit f307f2a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bridges/relays/substrate/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ async fn run_command(command: cli::Command) -> Result<(), String> {
};
let rialto_call_weight = rialto_call.get_dispatch_info().weight;

let millau_sender_public = millau_sign.signer.public();
let millau_sender_public: bp_millau::AccountSigner = millau_sign.signer.public().clone().into();
let rialto_origin_public = rialto_sign.signer.public();

let mut rialto_origin_signature_message = Vec::new();
Expand All @@ -289,7 +289,7 @@ async fn run_command(command: cli::Command) -> Result<(), String> {
spec_version: millau_runtime::VERSION.spec_version,
weight: rialto_call_weight,
origin: CallOrigin::RealAccount(
millau_sender_public.into(),
millau_sender_public,
rialto_origin_public.into(),
rialto_origin_signature.into(),
),
Expand All @@ -301,7 +301,9 @@ async fn run_command(command: cli::Command) -> Result<(), String> {
let signed_millau_call = Millau::sign_transaction(
&millau_client,
&millau_sign.signer,
millau_client.next_account_index(millau_sender_public.into()).await?,
millau_client
.next_account_index(millau_sign.signer.public().clone().into())
.await?,
millau_call,
);

Expand Down

0 comments on commit f307f2a

Please sign in to comment.