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

Set of fixes to the dev branch #311

Merged
merged 6 commits into from
Apr 11, 2024
Merged

Set of fixes to the dev branch #311

merged 6 commits into from
Apr 11, 2024

Conversation

StanislavBreadless
Copy link
Collaborator

@StanislavBreadless StanislavBreadless commented Apr 3, 2024

What ❔

Set of fixes to the dev branch:

  • Remove payable when not needed
  • Ensure paymaster gets correct maxRefundGas
  • Fix naming comments
  • Fix params in the p256 verify. Note, that the output length is ignored by the circuits anyway, but we change it for clarity

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.

@@ -38,7 +38,7 @@ address constant MULTIPLICATION_HIGH_ADDRESS = address((1 << 16) - 26);
address constant GET_EXTRA_ABI_DATA_ADDRESS = address((1 << 16) - 27);

// All the offsets are in bits
uint256 constant META_GAS_PER_PUBDATA_BYTE_OFFSET = 0 * 8;
uint256 constant META_PUBDATA_PUBLISHED_OFFSET = 0 * 8;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please ensure that this change is clearly indicated in the docs as a warning.

Copy link
Collaborator

Choose a reason for hiding this comment

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

The in-code documentation for a lot of functions is missing. It'll be better if we could address them.

@@ -224,9 +224,9 @@ library SystemContractHelper {
/// that a single byte sent to L1 as pubdata costs.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Given the changes made in the return field of the natspec comments, the @notice field looks incorrect to me.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in this PR: #351

@@ -67,7 +67,7 @@ contract L2BaseToken is IBaseToken, ISystemContract {
emit Mint(_account, _amount);
}

/// @notice Initiate the ETH withdrawal, funds will be available to claim on L1 `finalizeEthWithdrawal` method.
/// @notice Initiate the withdrawal of the base token, funds will be available to claim on L1 `finalizeEthWithdrawal` method.
Copy link
Collaborator

Choose a reason for hiding this comment

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

The ETH here has been changed to base token and that makes sense. Should we also consider changing the name of finalizeEthWithdrawal since it's no longer necessarily ETH?

Copy link
Collaborator Author

@StanislavBreadless StanislavBreadless Apr 11, 2024

Choose a reason for hiding this comment

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

Unfortunately no, since we need the old SDKs to be backward-compatible, this function is also only available for the Era hyperchain

@StanislavBreadless StanislavBreadless merged commit 31ecb43 into dev Apr 11, 2024
22 checks passed
@StanislavBreadless StanislavBreadless deleted the sb-fix-dev branch April 11, 2024 14:06
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.

4 participants