Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

feat: update account and paymaster validation return format #12

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

sm-stack
Copy link

Description

Updated the return data format of validateTransaction at TestAccount.sol and validatePaymasterTransaction at TestPaymaster.sol to fit to the changes at geth.

@sm-stack sm-stack self-assigned this Aug 23, 2024
(bytes32(MAGIC_VALUE_SENDER) |
bytes32(uint256(validUntil) << (6 * 8)) |
bytes32(uint256(validAfter)));
uint48 validUntil = 0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I was wondering why you set the until value to 0?

Copy link
Author

Choose a reason for hiding this comment

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

If both values of validUntil and validAfter are 0, it will be recognized as [0, type(uint48).max] automatically at validateValidityTimeRange function in geth.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh, right.
Passing validUntil = 0 and validAfter = 0 in the specification disables the check. So this part applies

Copy link
Collaborator

@kangsorang kangsorang left a comment

Choose a reason for hiding this comment

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

LGTM

@sm-stack sm-stack merged commit d18870f into 7560-poc Aug 26, 2024
2 checks passed
@sm-stack sm-stack deleted the feat/update-7560-contracts branch August 26, 2024 09:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants