From bc7701f4a6c5060caf2694869716b8a77cd81468 Mon Sep 17 00:00:00 2001 From: Fran Domovic Date: Thu, 19 Dec 2024 21:22:49 +0100 Subject: [PATCH] fix: lint --- .../src/client/env/proxy/types/starknet.rs | 31 +++++++++++-------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/crates/context/config/src/client/env/proxy/types/starknet.rs b/crates/context/config/src/client/env/proxy/types/starknet.rs index d85ee7e4d..4a6a3f3c8 100644 --- a/crates/context/config/src/client/env/proxy/types/starknet.rs +++ b/crates/context/config/src/client/env/proxy/types/starknet.rs @@ -350,19 +350,24 @@ impl From> for StarknetProposalActionWithArgs { impl From for ProposalAction { fn from(action: StarknetProposalActionWithArgs) -> Self { match action { - StarknetProposalActionWithArgs::ExternalFunctionCall(contract, selector, calldata, _) => { - ProposalAction::ExternalFunctionCall { - receiver_id: format!("0x{}", hex::encode(contract.to_bytes_be())), - method_name: format!("0x{}", hex::encode(selector.to_bytes_be())), - args: calldata - .0.high.to_bytes_be() - .chunks(32) - .map(|bytes| format!("0x{}", hex::encode(bytes))) - .collect::>() - .join(","), - deposit: 0, - } - } + StarknetProposalActionWithArgs::ExternalFunctionCall( + contract, + selector, + calldata, + _, + ) => ProposalAction::ExternalFunctionCall { + receiver_id: format!("0x{}", hex::encode(contract.to_bytes_be())), + method_name: format!("0x{}", hex::encode(selector.to_bytes_be())), + args: calldata + .0 + .high + .to_bytes_be() + .chunks(32) + .map(|bytes| format!("0x{}", hex::encode(bytes))) + .collect::>() + .join(","), + deposit: 0, + }, StarknetProposalActionWithArgs::Transfer(receiver, amount) => { let FeltPair { high, low } = amount.0; ProposalAction::Transfer {