Repository navigation
fix(stellarkraal): prevent same-ledger loan ID collisions - #162
Merged
teslims2 merged 1 commit intoSep 1, 2026
Merged
Conversation
4 tasks
This was referenced Sep 2, 2026
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.
Summary
open_loanID seed so a same-asset reopen in the same ledger does not reuse the settled loan's storage keyopen_loanABI unchanged and returnArithmeticErrorif the nonce cannot advanceValidation
Negative control on base
cca5f033318f43cb9b18060d161873d75df58381: failed as expected because both opens produced183e3685794406772e06e088efceb884f8c4a88ea55d54d5fbb398d5429e7938.Scoped checks on this change:
stellarkraaltests β PASS (18 unit, 6 lifecycle, 0 doc tests)cargo fmt -p stellarkraal -- --checkβ PASScargo clippy --locked -p stellarkraal --all-targets -- -D warningsβ PASScargo clippy --locked -p stellarkraal --lib -- -D warnings -D clippy::arithmetic_side_effectsβ PASSstellarkraalrelease WASM build β PASSRepository-wide status
The scoped package checks above pass. Repository-wide gates remain blocked on current
mainby unrelated, pre-existing issues: the nested[workspace]incontracts/carbon_credit/fuzz, duplicate TTL constants incarbon_marketplaceafter a validation-only workspace bypass, and existingcarbon_marketplaceformatting drift. This PR does not modify those paths.Fixes #94