Repository navigation
Conversation
Co-authored-by: Simple Agent <agent@simple.dev>
|
@knightqueen-sketch Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1726
Closes #1727
Closes #1728
Closes #1729
Issues
#1726 Test: frozen player cannot create or join a match but can cancel and claim
#1727 Frontend: game ID input accepts whitespace-only strings
#1728 Enhancement: oracle contract should expose
get_approved_oracleslist#1729 Fix:
set_protocol_configdoes not validatecancellation_fee_bpsupper boundSummary
The four issues are independent and can be implemented in parallel. For #1726, the frozen-player rejection reuses Error::ContractPaused (per the require_player_not_frozen helper and the admin_freeze_player doc comment) — assert against that error rather than a dedicated PlayerFrozen variant. For #1729, mirror the existing protocol_fee_bps <= 10_000 check exactly and use Error::InvalidAmount as specified. For #1728, keep the approved-oracle list in instance storage alongside the existing approval records and make add/remove idempotent to avoid duplicates. For #1727, validateGameId already trims and returns 'Required' for blank input, so the main change is trimming on change/submit and adding the tests; ensure the LichessGamePicker onSelect path also trims.
Changes
mod player_freeze;); no change needed unless the new tests require additional shared fixtures. If new fixtures are needed, add them here rather than duplicating setup code. (contracts/escrow/src/tests/mod.rs)pub fn get_approved_oracles(env: Env) -> Vec<Address>returning the stored list (empty vec if unset). (contracts/oracle/src/lib.rs)