From 336eb34162f238411091022fea18afd79a96c315 Mon Sep 17 00:00:00 2001 From: Guillermo Bescos Date: Tue, 30 Jan 2024 17:17:20 +0000 Subject: [PATCH] Do it --- .../solana/programs/pyth-solana-receiver/src/error.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/target_chains/solana/programs/pyth-solana-receiver/src/error.rs b/target_chains/solana/programs/pyth-solana-receiver/src/error.rs index 7ad666efde..94aa33170c 100644 --- a/target_chains/solana/programs/pyth-solana-receiver/src/error.rs +++ b/target_chains/solana/programs/pyth-solana-receiver/src/error.rs @@ -5,16 +5,19 @@ pub enum ReceiverError { // Pyth payload errors #[msg("Received an invalid wormhole message")] InvalidWormholeMessage, - #[msg("Received an invalid price update")] - InvalidPriceUpdate, #[msg("An error occurred when deserializing the message")] DeserializeMessageFailed, + #[msg("Received an invalid price update")] + InvalidPriceUpdate, #[msg("This type of message is not supported currently")] UnsupportedMessageType, #[msg("The tuple emitter chain, emitter doesn't match one of the valid data sources.")] InvalidDataSource, #[msg("Funds are insufficient to pay the receiving fee")] InsufficientFunds, + // Price account permissions + #[msg("This signer can't write to price update account")] + WrongWriteAuthority, // Wormhole contract encoded vaa error (from post_updates) #[msg("The posted VAA account has the wrong owner.")] WrongVaaOwner, @@ -48,7 +51,4 @@ pub enum ReceiverError { TargetGovernanceAuthorityMismatch, #[msg("The governance authority needs to request a transfer first")] NonexistentGovernanceAuthorityTransferRequest, - // Price account permissions - #[msg("This signer can't write to price update account")] - WrongWriteAuthority, }