Skip to content

Conversation

@Dewyer
Copy link

@Dewyer Dewyer commented Dec 11, 2025

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.

@Dewyer Dewyer requested a review from guibescos December 11, 2025 11:19
@Dewyer
Copy link
Author

Dewyer commented Dec 11, 2025

Error: getCacheEntry failed:

Our services aren't available right now

We're working to restore all services as soon as possible. Please check back soon.

0B6k6aQAAAABz0MbYXjJrS6bykEUXEpsZUEhMMzBFREdFMDQyMABFZGdl

Not sure if we have to update CI too?

@Dewyer
Copy link
Author

Dewyer commented Dec 11, 2025

Ci good now :D

cpi = ["no-entrypoint"]
default = []
custom-heap = []
custom-panic = []
Copy link
Contributor

@guibescos guibescos Dec 11, 2025

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

Copy link
Author

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"
Copy link
Contributor

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

Copy link
Author

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

Copy link
Author

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()
Copy link
Contributor

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?

Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants