-
Notifications
You must be signed in to change notification settings - Fork 1
[Chore] Updated deps, fixed test to work in the current year #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what are
custom-heap, custom-panic and anchor_debug
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not go to anchor-lang 0.32.1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not make this 1700000000 like in the original?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is this quirk in the simulator that it cant go back in time, this only worked when system time was below 17xxx
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.