[Chore] Updated deps, fixed test to work in the current year#9
Conversation
|
Error: getCacheEntry failed: Our services aren't available right nowWe're working to restore all services as soon as possible. Please check back soon. 0B6k6aQAAAABz0MbYXjJrS6bykEUXEpsZUEhMMzBFREdFMDQyMABFZGdlNot sure if we have to update CI too? |
|
Ci good now :D |
| cpi = ["no-entrypoint"] | ||
| default = [] | ||
| custom-heap = [] | ||
| custom-panic = [] |
There was a problem hiding this comment.
what are
custom-heap, custom-panic and anchor_debug
There was a problem hiding this comment.
they are required to test anchor programs in the new version
| unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_os, values("solana"))'] } | ||
|
|
||
| [workspace.dependencies] | ||
| anchor-lang = "0.30.1" |
There was a problem hiding this comment.
why not go to anchor-lang 0.32.1
There was a problem hiding this comment.
i can update it further, tbh this felt like the min version that would work w the newer rust
There was a problem hiding this comment.
while also not requiring that many changes, the simulator and whatnot testing interfaces change a lot too, i feel like its going to be good enough for now, and just works
|
|
||
| #[tokio::test] | ||
| async fn test() { | ||
| let base_ts = SystemTime::now() |
There was a problem hiding this comment.
why not make this 1700000000 like in the original?
There was a problem hiding this comment.
there is this quirk in the simulator that it cant go back in time, this only worked when system time was below 17xxx
* Revamp scripts * Remove empty section from Anchor.toml * Switch to pnpm, improve multisig support, update scripts, etc. * fix: ledger send transaction logic (#11) --------- Co-authored-by: guibescos <59208140+guibescos@users.noreply.github.com>
About
The programs no longer built using more recent rustc's and solana toolchains, updated dependencies to fix that.
Also fixed the timelock test so it will work in the future (previously it required system time to be smaller then 1700000000, 2023. nov. 14)
Formatted the code with cargo fmt, and unified the workspace dependencies.