Skip to content

js: fix initialize to deposit 1sol#43

Merged
2501babe merged 1 commit intosolana-program:mainfrom
2501babe:js_minimum
Jan 15, 2025
Merged

js: fix initialize to deposit 1sol#43
2501babe merged 1 commit intosolana-program:mainfrom
2501babe:js_minimum

Conversation

@2501babe
Copy link
Member

@2501babe 2501babe commented Jan 15, 2025

instead of refactoring all the tests to do something like test_case with both feature states, i just disabled the feature. this basically cannot fail if the minimum became 1sol because we hardcode 1sol. we would only need to do the gruntwork if the minimum was increased again, to more than 1sol

note this was reported as an issue with deposit but it is actually just initialize. deposits of any size are fine, the program merely enforces that the pool has a whole must have at least 1sol

i also just merged a pr for cli tests to test against a validator with the 1lamp minimum, cli worked fine with no changes

Copy link
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fly-by review: looks great!

@2501babe 2501babe merged commit 07675d2 into solana-program:main Jan 15, 2025
13 checks passed
@2501babe 2501babe deleted the js_minimum branch January 15, 2025 14:08
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.

2 participants