metaplex-foundation / metaplex-program-library

Smart contracts maintained by the Metaplex team
Other
588 stars 513 forks source link

Problem while freezing nft account in Rust #789

Closed bamdadam closed 2 years ago

bamdadam commented 2 years ago

Hello i've been trying to write a staking program and i need to freeze an nft. i delegate it to a pda before trying to freeze it image my stake context: image delegate context: image making freeze instruction: image and invoking it: image i've tried numerous ways and checked cardinals and candy machines freeze_delegated_nft but whatever i do i keep getting: image can anyone tell me what im doing wrong? Thanks in advance.

samuelvanderwaal commented 2 years ago

Hello i've been trying to write a staking program and i need to freeze an nft. i delegate it to a pda before trying to freeze it image my stake context: image delegate context: image making freeze instruction: image and invoking it: image i've tried numerous ways and checked cardinals and candy machines freeze_delegated_nft but whatever i do i keep getting: image can anyone tell me what im doing wrong? Thanks in advance.

Why is the spl_program account commented out in the account_infos slice? Uncomment that and it should work.

bamdadam commented 2 years ago

hey sorry for the late reply, so i did as you suggested and it didn't work. image got the same error message as before image

bamdadam commented 2 years ago

@samuelvanderwaal hey , can you check this out again whenever you have time?

bamdadam commented 2 years ago

@metaplex-foundation can anyone take a look at this?

bamdadam commented 2 years ago

nvm found the issue