Skip to content

test(contract): estimate deployment resource bounds - #216

Merged
franciszekjob merged 2 commits into
software-mansion:masterfrom
adrienlacombe:fix/deployment-test-estimate-fees
Nov 26, 2026
Merged

franciszekjob merged 2 commits into
software-mansion:masterfrom
adrienlacombe:fix/deployment-test-estimate-fees

Conversation

@adrienlacombe

Copy link
Copy Markdown
Contributor

Introduced changes

The contract deployment integration tests currently fail on master (e.g. run for 791817a) and on every open PR:

Account validation failed: Resources bounds (...) exceed balance (1155428527218345968)

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_v3 estimate 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 warnings locally. I didn't run it locally because it sends a real Sepolia transaction; CI runs it.

Checklist

  • Linked relevant issue
  • Added relevant tests
  • Performed self-review of the code
  • Added changes to CHANGELOG.md

🤖 Generated with Claude Code

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>
@adrienlacombe
adrienlacombe requested a review from a team as a code owner November 19, 2026 14:01
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@franciszekjob
franciszekjob merged commit 594e17c into software-mansion:master Nov 26, 2026
28 checks passed
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>
@snickerdoodle2 snickerdoodle2 mentioned this pull request Nov 27, 2026
1 of 4 tasks
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