687c / solana-nft-anchor

Code for minting nfts on Solana using anchor and metaplex
21 stars 896 forks source link

Include step in ReadMe to update Anchor.toml and lib.rs files with same program ID #2

Closed saintjer2224 closed 10 months ago

saintjer2224 commented 10 months ago

NFT minting fails after running "anchor test" command with the following error: "Error: failed to send transaction: invalid transaction: Transaction failed to sanitize accounts offsets correctly." If project is forked, make sure to have Anchor.toml and lib.rs files updated with same Program ID (generated from anchor deploy).

[programs.devnet] solana_nft_anchor = ""

declare_id!("");

Related issue: https://stackoverflow.com/questions/70987634/solana-anchor-error-failed-to-send-transaction-invalid-transaction-transactio

jim4067 commented 10 months ago

done. Thanks for raising this.