fix: resolve Fuel deployment transaction size limit exceeded error #2911
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
Fixed the "transaction size limit exceeded" error in the Fuel deployment script by updating the provider endpoint from the failing
BETA_5_URL
tohttps://testnet.fuel.network
. This change enables successful contract deployment and constructor execution with 19 guardian addresses.Rationale
The deployment script was failing with
Validity(TransactionSizeLimitExceeded)
error when trying to deploy the Pyth contract. Investigation revealed:BETA_5_URL
endpoint was returning 530 errors, preventing proper testingMAX_TRANSACTION_SIZE
limit is approximately 110,592 bytes (108 KB)The endpoint change resolved the connectivity issue and confirmed that the release build configuration in
constants.rs
already points to the optimized binary that fits within Fuel's transaction size limits.Changes Made
BETA_5_URL
to"https://testnet.fuel.network"
BETA_5_URL
importHow has this been tested?
Test Results:
Important Review Notes
🔍 Review Focus Areas:
https://testnet.fuel.network
is appropriate vs using a constantLink to Devin run: https://app.devin.ai/sessions/93ad0e15829b4a94a6ab3db0dc11eb9f
Requested by: @ayushboss