-
Notifications
You must be signed in to change notification settings - Fork 672
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
Conversation
c57378e
to
e683e7e
Compare
verify the paymaster is configured with EntryPoint with the expected IEntryPoint interface.
e683e7e
to
ffce6e1
Compare
@@ -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('') |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
verify the paymaster is configured with EntryPoint with the expected IEntryPoint interface.