Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process Upload transaction inside the Interpreter #715

Merged
merged 92 commits into from
Apr 15, 2024

Conversation

xgreenx
Copy link
Collaborator

@xgreenx xgreenx commented Apr 8, 2024

Part of the FuelLabs/fuel-core#1754

The Interpreter supports the processing of the Upload transaction. The change affects InterpreterStorage, adding StorageMutate<UploadedBytes> constrain.

Checklist

  • New behavior is reflected in tests

Before requesting review

  • I have reviewed the code myself

xgreenx and others added 30 commits March 21, 2024 07:37
Reduced default `MAX_SIZE` to be 110kb.
Reduced default `MAX_CONTRACT_SIZE` to be 100kb.
# Conflicts:
#	CHANGELOG.md
#	fuel-tx/src/builder.rs
#	fuel-tx/src/tests/valid_cases/transaction.rs
#	fuel-tx/src/transaction/consensus_parameters.rs
#	fuel-vm/src/checked_transaction.rs
#	fuel-vm/src/tests/limits.rs
#	fuel-vm/src/tests/validation.rs
…ction

# Conflicts:
#	fuel-tx/src/transaction/consensus_parameters.rs
# Conflicts:
#	fuel-tx/src/transaction/consensus_parameters.rs
#	fuel-vm/src/tests/validation.rs
…ansaction

# Conflicts:
#	fuel-tx/src/transaction/types/script.rs
#	fuel-vm/src/interpreter.rs
@@ -96,6 +97,11 @@ impl<Ecal: EcalHandler> MemoryClient<Ecal> {
self.transactor.upgrade(tx)
}

/// Executes `Upload` transaction.
pub fn upload(&mut self, tx: Checked<Upload>) -> Option<Upload> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Consider returning the error here instead of erasing it

Dentosal
Dentosal previously approved these changes Apr 11, 2024
Base automatically changed from feature/upload-transaction to master April 12, 2024 22:58
@xgreenx xgreenx dismissed stale reviews from Dentosal and MitchTurner April 12, 2024 22:58

The base branch was changed.

…interpreter

# Conflicts:
#	CHANGELOG.md
#	fuel-tx/src/transaction/types/upload.rs
@xgreenx xgreenx requested review from MitchTurner, Dentosal and a team April 12, 2024 23:05
@xgreenx xgreenx enabled auto-merge April 12, 2024 23:16
@xgreenx xgreenx added this pull request to the merge queue Apr 15, 2024
Merged via the queue into master with commit 0fba60d Apr 15, 2024
38 checks passed
@xgreenx xgreenx deleted the feature/process-upload-transaction-within-interpreter branch April 15, 2024 10:56
@xgreenx xgreenx mentioned this pull request Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking A breaking api change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants