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

SMA-355 [WIP] Gas Optimisations #179

Merged
merged 16 commits into from
Dec 28, 2023
Merged

Conversation

ankurdubey521
Copy link
Contributor

@ankurdubey521 ankurdubey521 commented Nov 30, 2023

Summary

Gas Optimisations

Related Issue: #SMA-355

Change Type

  • Performance Improvement

Checklist

  • My code follows this project's style guidelines
  • I've reviewed my own code
  • I've added comments for any hard-to-understand areas
  • I've updated the documentation if necessary
  • My changes generate no new warnings
  • I've added tests that prove my fix is effective or my feature works
  • All unit tests pass locally with my changes
  • Any dependent changes have been merged and published

@ankurdubey521 ankurdubey521 added the enhancement New feature or request label Nov 30, 2023
Copy link

linear bot commented Nov 30, 2023

SMA-355 Gas Optimization SCW-Contract ⛽️

Implement gas optimizations on the current stable version of the SCW contract.

This phase prioritizes the enhancement of existing implementations, focusing on core implementation and widely used modules.

Completing this milestone may require coordinating with auditors if significant changes are made.

@livingrockrises livingrockrises marked this pull request as ready for review December 25, 2023 17:29
contracts/smart-account/SmartAccount.sol Show resolved Hide resolved
@@ -28,6 +28,6 @@ interface ISignatureValidator {
*/
function isValidSignatureUnsafe(
bytes32 dataHash,
bytes memory moduleSignature
bytes calldata moduleSignature
Copy link
Contributor

Choose a reason for hiding this comment

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

any specific rationale for this?

Copy link
Collaborator

Choose a reason for hiding this comment

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

calldata can be sliced => cheaper

test/foundry/smart-account/SA.Basics.t.sol Outdated Show resolved Hide resolved
Copy link
Contributor

@livingrockrises livingrockrises left a comment

Choose a reason for hiding this comment

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

LGTM

@livingrockrises livingrockrises merged commit f07cc61 into develop Dec 28, 2023
2 checks passed
@filmakarov filmakarov deleted the feat/sma-355-gas-opt branch December 28, 2023 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants