Hi got next error in communication between dex exchange and phantom wallet
#1 Unknown program instruction
Program log: free_supply: 14100789713994 Program log: Custom program error: 0x179d Program Zo1ggzTUKMY5bYnDvT5mtVeZxzf2FaLTbKkmvGUhUQk consumed 41719 of 1400000 compute units Program returned error: custom program error: 0x179d
what might cause the issue?
When you see custom program error... it indicates that a program instruction in your transaction failed. The 0x179d is the program's code which may be a unique error code, often times it is an index (variant) of a Rust enum in the program error.rs.
For example:
pub enum SampleError {
InvalidInstruction,
DeserializationFailure,
AlreadyInitializedState,
KeyNotFoundInAccount,
KeyAlreadyExists,
InsufficientFundsForTransaction,
UnknownError,
}
So here, you could possibly see an error code of 0x0 through 0x6. A program may also assign the error code in some other way.
In order for you to know what the error associated to the code is you can either look up the error in the programs source code. If the program you are calling is not open source... you can try to contact the owner of the program to get more information about the code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With