Closed kAsky53 closed 2 years ago
I guess this happens because StakeState
is defined in the external crate. You can modify IDL in runtime before loading and add StakeState
definition.
But I can be wrong.
@fanatid Thanks for your kind reply, however I am not sure how can I modify IDL in runtime especially when I am doing anchor test
.
Do you have any idea about this?
Thank you!
You can build first anchor build
, then modify IDL definitions and run tests without building anchor test --skip-build
.
Got it - thank you so much @fanatid !
Hello, I have used solana_program::stake::state::StakeState in my state.
It doesn't seem like anchor serialize enum with tuples properly.
When I run
anchor test
it throws the following error.Is there anyone who have resolved this sort of issue before?
Thank you!