Skip to content

Commit

Permalink
solana: format
Browse files Browse the repository at this point in the history
Signed-off-by: bingyuyap <[email protected]>
  • Loading branch information
bingyuyap committed Oct 12, 2024
1 parent 2b0f351 commit 292d865
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion svm/programs/router/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion svm/programs/router/src/instructions/set_transceivers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ pub fn set_recv_transceiver(ctx: Context<SetTransceiver>, _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(())
}
Expand Down
5 changes: 4 additions & 1 deletion svm/programs/router/tests/register_transceiver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 292d865

Please sign in to comment.