From 292d865cbcdbbd500a5d140b4959489383fa0133 Mon Sep 17 00:00:00 2001 From: bingyuyap Date: Sun, 13 Oct 2024 04:05:00 +0800 Subject: [PATCH] solana: format Signed-off-by: bingyuyap --- svm/programs/router/README.md | 2 +- svm/programs/router/src/instructions/set_transceivers.rs | 5 ++++- svm/programs/router/tests/register_transceiver.rs | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/svm/programs/router/README.md b/svm/programs/router/README.md index 3fc47e21..e4b1c01c 100644 --- a/svm/programs/router/README.md +++ b/svm/programs/router/README.md @@ -131,7 +131,7 @@ Stores configuration specific to an Integrator. - Unique for each integrator program - Initialization: - The integrator program must sign the transaction - // TODO: should we make owner sign? + // TODO: should we make owner sign? - Owner is set during initialization (not required to sign) ### IntegratorChainTransceivers diff --git a/svm/programs/router/src/instructions/set_transceivers.rs b/svm/programs/router/src/instructions/set_transceivers.rs index 3f35b78d..a2024041 100644 --- a/svm/programs/router/src/instructions/set_transceivers.rs +++ b/svm/programs/router/src/instructions/set_transceivers.rs @@ -55,7 +55,10 @@ pub fn set_recv_transceiver(ctx: Context, _args: SetTransceiverA ctx.accounts .integrator_chain_transceivers .recv_transceiver_bitmap - .set(ctx.accounts.registered_transceiver.id.try_into().unwrap(), true)?; + .set( + ctx.accounts.registered_transceiver.id.try_into().unwrap(), + true, + )?; Ok(()) } diff --git a/svm/programs/router/tests/register_transceiver.rs b/svm/programs/router/tests/register_transceiver.rs index f8513fbf..4aaad950 100644 --- a/svm/programs/router/tests/register_transceiver.rs +++ b/svm/programs/router/tests/register_transceiver.rs @@ -97,7 +97,10 @@ async fn test_register_transceiver_success() { registered_transceiver.integrator_program_id, integrator_program.pubkey() ); - assert_eq!(registered_transceiver.transceiver_address, transceiver_address); + assert_eq!( + registered_transceiver.transceiver_address, + transceiver_address + ); // Verify that the integrator config's transceivers list has been updated let integrator_config: IntegratorConfig =