Timeline for Account:try_from with different Anchor versions
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 10 at 0:00 | history | edited | mikemaccana♦ |
edited tags
|
|
Jan 3 at 19:56 | comment | added | Jon C | It's not a great solution, but you could always fork the orca repo, upgrade it to 0.28, and use that in your project. Or push the orca team to upgrade :-D | |
Dec 20, 2023 at 0:17 | comment | added | Whiteseal | let data = &clp_pool.try_borrow_data()?[8..]; | |
Dec 19, 2023 at 22:39 | comment | added | Whiteseal |
This is an option, but if padding changes between Anchor versions it wouldn't work, and it's jank because it ignores discrim checks and other anchor features: let data = &clp_pool.try_borrow_data()?[..]; let whirlpool = whirlpool::state::Whirlpool::try_from_slice(data)?;
|
|
Dec 19, 2023 at 22:28 | history | asked | Whiteseal | CC BY-SA 4.0 |