StakeAccount<Delegation> can only wrap a stake-state which is a Delegation; whereas StakeAccount<()> wraps any account with stake state. As a result, StakeAccount::<Delegation>::delegation() will return Delegation instead of Option<Delegation>. |
||
---|---|---|
.. | ||
benches | ||
src | ||
store-tool | ||
tests | ||
.gitignore | ||
Cargo.toml | ||
build.rs |