Repository navigation
fix(contracts): admin auth on initialize, prune cell index, authenticated reports, MSRV - #1670
Merged
BigBen-7 merged 3 commits intoNov 18, 2026
Conversation
|
@bobaivigitalpoint-ui 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! 🚀 |
…uthenticated deduped reports, declare MSRV
bobaivigitalpoint-ui
force-pushed
the
fix/bobaivigitalpoint-ui-contract-hardening
branch
from
November 18, 2026 21:07
2f4e0fb to
1ff2ec1
Compare
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 #1546
Closes #1547
Closes #1548
Closes #1549
Changes
initializenow callsadmin.require_auth(); added a test that it traps without authorization (existing tests already usemock_all_auths); README updated.delete_gistandremove_gistnow prune the id fromDataKey::CellIndex(cell); two tests added.report_gist(gist_id, reporter)requiresreporterauth, storesDataKey::Reported(gist_id, reporter), and returns newGistError::AlreadyReported(code 9) on a repeat; tests and README ABI/error table updated.contracts/Cargo.tomlhasrust-version = "1.84".SorobanService.reportGistLivenow passes the signer's address asreporter.Caveats
report_gistABI change is breaking for any other caller.