Skip to content

gas opti: no call toId#1012

Closed
MathisGD wants to merge 1 commit into
mainfrom
perf/lib-id
Closed

gas opti: no call toId#1012
MathisGD wants to merge 1 commit into
mainfrom
perf/lib-id

Conversation

@MathisGD

Copy link
Copy Markdown
Collaborator

saves ~1000 gas per loop, not sure if worth it

@MathisGD MathisGD requested review from QGarchery and adhusson June 23, 2026 10:34
@MathisGD MathisGD self-assigned this Jun 23, 2026

address public constant PERMIT2 = 0x000000000022D473030F116dDEE9F6B43aC78BA3;
address public immutable MIDNIGHT;
uint256 public immutable INITIAL_CHAIN_ID;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
uint256 public immutable INITIAL_CHAIN_ID;
uint256 public immutable MIDNIGHT_INITIAL_CHAIN_ID;

(optional)

@MathisGD

Copy link
Copy Markdown
Collaborator Author

at the end judged not worth it

@MathisGD MathisGD closed this Jun 23, 2026
@MathisGD MathisGD deleted the perf/lib-id branch June 23, 2026 13:19
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.

3 participants