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

AA-237: paymaster: check EntryPoint's interface #370

Merged
merged 4 commits into from
Jan 3, 2024

Conversation

drortirosh
Copy link
Contributor

verify the paymaster is configured with EntryPoint with the expected IEntryPoint interface.

@drortirosh drortirosh force-pushed the paymaster-check-ep-supportedInterface branch from c57378e to e683e7e Compare November 8, 2023 19:03
verify the paymaster is configured with EntryPoint with the expected
IEntryPoint interface.
@drortirosh drortirosh force-pushed the paymaster-check-ep-supportedInterface branch from e683e7e to ffce6e1 Compare November 9, 2023 09:15
@drortirosh drortirosh changed the title paymaster: check EntryPoint's interface AA-237: paymaster: check EntryPoint's interface Nov 9, 2023
@@ -68,6 +68,11 @@ describe('EntryPoint with paymaster', function () {
ownerAddr = await ethersSigner.getAddress()
})

it('paymaster should revert on wrong entryPoint type', async () => {
await expect(new LegacyTokenPaymaster__factory(ethersSigner).deploy(factory.address, 'ttt', AddressZero))
.to.be.revertedWith('')
Copy link
Collaborator

Choose a reason for hiding this comment

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

@drortirosh don't you get a full revert message here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

zero address reverts with empty string.
added a test with some contract with different supportsInterface.

shahafn
shahafn previously approved these changes Jan 2, 2024
forshtat
forshtat previously approved these changes Jan 2, 2024
@drortirosh drortirosh dismissed stale reviews from forshtat and shahafn via 74bad58 January 3, 2024 14:29
@drortirosh drortirosh merged commit 346ab2d into develop Jan 3, 2024
8 checks passed
@drortirosh drortirosh deleted the paymaster-check-ep-supportedInterface branch January 3, 2024 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants