I am getting this error in my contract written in Anchor.
I have already checked the custom errors of anchor at https://docs.rs/anchor-lang/latest/anchor_lang/error/enum.ErrorCode.html, but did not find anything 0x70 error code there.
I am getting this error in my contract written in Anchor.
I have already checked the custom errors of anchor at https://docs.rs/anchor-lang/latest/anchor_lang/error/enum.ErrorCode.html, but did not find anything 0x70 error code there.
I figured out the issue was coming because mpl_token_metadata::instruction::update_metadata_accounts_v2
CPI was failing.
The reason of failing of above CPI was: In my update instruction collection
was None
& the nft, I was trying of update, had their collection
set beforehand.
Lesson Learned:
Printing out the program logs helps a lot to figure out the issue.
mpl_token_metadata::instruction::update_metadata_accounts_v2
CPI was failing.