Skip to content

Commit

Permalink
Do it
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Jan 30, 2024
1 parent 14a8df5 commit 336eb34
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions target_chains/solana/programs/pyth-solana-receiver/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
}

0 comments on commit 336eb34

Please sign in to comment.