admin can set peer address in application has been deployed in solana network and other application in orderly network and when admin set them as peer its mean they can send and receive message through layer zero, in orderly side admin can update peer address but in solana side admin cannot update that
Petite Pecan Starfish
Medium
admin cannot update peer address
Summary
admin cannot update peer address
Root Cause
admin can set peer address in application has been deployed in solana network and other application in orderly network and when admin set them as peer its mean they can send and receive message through layer zero, in orderly side admin can update peer address but in solana side admin cannot update that
Code Snippet
https://github.com/sherlock-audit/2024-09-orderly-network-solana-contract/blob/main/solana-vault/packages/solana/contracts/programs/solana-vault/src/instructions/oapp_instr/set_peer.rs#L12
Impact
admin cannot update peer address in solana-valut
Mitigation