When I do the Cross-Program Invocations transfer and then I can’t able to fetch the data from the PDA account.
Hey, @aravindh
Please try to change ctx.accounts.order.to_account_info()
to order.to_account_info()
You are now borrowing ctx.accounts.order
as mutable to order
.
So you can’t use immutable borrow.
its working now.
afterwards, i can’t able to fetch the data from pda accounts.
when try to get the account details. its give the null response.
await mainProgram.provider.connection.getAccountInfo(
order.orderAccount
);
can you please explain me. it’s possible to manage the nft token in pda account.