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

Move gas bound caller to a separate folder #425

Merged
merged 7 commits into from
May 6, 2024

Conversation

StanislavBreadless
Copy link
Collaborator

@StanislavBreadless StanislavBreadless commented Apr 30, 2024

What ❔

Moving out gas-bound caller to a separate folder:

  • This is more logical since unlike any contract in the system-contracts folder it is neither system nor built-in and will have to be deployed manually on each chain.
  • Also scripts to deploy the bytecode are provided
  • We store the entire bytecode instead of just the hash of it in case the compiler becomes unavailable and we still need to deploy the contract to the same address

Important

The functionality of the GasBoundCaller has also changed a bit, now we also return the amount of gas spent on pubdata in case of a successful call

Why ❔

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.

gas-bound-caller/scripts/check-canonical-bytecode.ts Outdated Show resolved Hide resolved
gas-bound-caller/README.md Show resolved Hide resolved
gas-bound-caller/contracts/GasBoundCaller.sol Outdated Show resolved Hide resolved
@StanislavBreadless
Copy link
Collaborator Author

The CI does not pass, but it is not due to an issue in this PR: https://github.com/matter-labs/era-contracts/actions/runs/8971302673/job/24636744161?pr=446

@StanislavBreadless StanislavBreadless merged commit 13445ad into release-v23 May 6, 2024
21 of 22 checks passed
@StanislavBreadless StanislavBreadless deleted the sb-update-gas-bound-caller branch May 6, 2024 15:28
Deniallugo pushed a commit that referenced this pull request Jul 25, 2024
Co-authored-by: Vlad Bochok <41153528+vladbochok@users.noreply.github.com>
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