Repository navigation
test(contract): estimate deployment resource bounds - #216
Merged
franciszekjob merged 2 commits intoNov 26, 2026
Merged
franciszekjob merged 2 commits into
franciszekjob merged 2 commits into
Conversation
The deployment tests hardcoded resource bounds whose maximum fee (~1.2 STRK) now exceeds the shared Sepolia fixture account's balance (~1.16 STRK), so every deploy is rejected with "Resources bounds ... exceed balance". Let the builder estimate the bounds with its default safety margins instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
franciszekjob
approved these changes
Nov 19, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
franciszekjob
approved these changes
Nov 19, 2026
adrienlacombe
added a commit
to adrienlacombe/starknet-rust
that referenced
this pull request
Nov 26, 2026
Resolve the conflict in contract_deployment.rs by taking master's version, which already estimates deployment resource bounds (software-mansion#216). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
Introduced changes
The contract deployment integration tests currently fail on master (e.g. run for
791817a) and on every open PR:The tests hardcode resource bounds whose maximum fee is about 1.2 STRK, which is now more than the shared Sepolia fixture account holds (about 1.16 STRK). This change drops the fixed bounds and lets
deploy_v3estimate them with the builder's default safety margins. All four deployment assertions are unchanged.Split out of #188 at the reviewer's request.
Validation: the test compiles and passes
cargo clippy --all-targets -D warningslocally. I didn't run it locally because it sends a real Sepolia transaction; CI runs it.Checklist
CHANGELOG.md🤖 Generated with Claude Code