error[E0599]: no variant or associated item named deserialize
found for enum StakeState
in the current scope
#35592
Labels
community
Community contribution
Problem
having this issue during anchor build
`Error: Function _ZN14regex_automata4meta8strategy3new17h5a7597463846e6e4E Stack offset of 6344 exceeded max offset of 4096 by 2248 bytes, please minimize large stack variables
Compiling anchor-spl v0.27.0
error[E0599]: no variant or associated item named deserialize found for enum StakeState in the current scope
--> src/stake.rs:139:21
|
139 | StakeState::deserialize(buf).map(Self).map_err(Into::into)
| ^^^^^^^^^^^ variant or associated item not found in StakeState
|
= help: items from traits can only be used if the trait is in scope
help: the following traits are implemented but not in scope; perhaps add a use for one of them:
|
1 + use anchor_lang::AnchorDeserialize;
|
1 + use bincode::config::Options;
|
1 + use borsh::de::BorshDeserialize;
|
1 + use borsh::de::BorshDeserialize;
|
and 3 other candidates
For more information about this error, try rustc --explain E0599.
error: could not compile anchor-spl (lib) due to previous error`
Proposed Solution
The text was updated successfully, but these errors were encountered: