Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tkporter committed Dec 12, 2024
1 parent f88dabe commit c5cc03b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions rust/main/chains/hyperlane-sealevel/src/mailbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ lazy_static! {
(pubkey!("3EpVCPUgyjq2MfGeCttyey6bs5zya5wjYZ2BE6yDg6bm"), pubkey!("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v")),
// USDT
(pubkey!("Bk79wMjvpPCh5iQcCEjPWFcG1V2TfgdwaBsWBEYFYSNU"), pubkey!("Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB")),
// USDT
// WIF
(pubkey!("CuQmsT4eSF4dYiiGUGYYQxJ7c58pUAD5ADE3BbFGzQKx"), pubkey!("EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm")),
]);
}
Expand Down Expand Up @@ -275,11 +275,10 @@ impl SealevelMailbox {
if let Some(forced_readonly_account) =
RECIPIENT_FORCED_READONLY_ACCOUNTS.get(&recipient_program_id)
{
for account_meta in account_metas.iter_mut() {
if account_meta.pubkey == *forced_readonly_account {
account_meta.is_writable = false;
}
}
account_metas
.iter_mut()
.filter(|account_meta| account_meta.pubkey == *forced_readonly_account)
.for_each(|account_meta| account_meta.is_writable = false);
}

Ok(account_metas)
Expand Down

0 comments on commit c5cc03b

Please sign in to comment.