3

I was developing without issue on devnet and then decided to deploy to mainnet. Suddenly the same instruction that used to work on devnet gave rise to the following on mainnet

Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 6: custom program error: 0xbbf 

How do I fix this?

1 Answer 1

1

After some time debugging and setting skipPreflight = true, I was able to detect the the account that was causing the issue.

In my cargo.toml, I had a package that had the feature flag for devnet toggled:

pkg = { version = "^0.1.14", features = ["devnet"] }

The pkg makes use of a program account address that is different from mainnet and devnet. When deploying to mainnet, the feature flag needed to be removed:

pkg = { version = "^0.1.14" }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.