Skip to content

Commit f00a7e1

Browse files
committed
Add missing test
1 parent a4ec36b commit f00a7e1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

test/eip712/proxy/EIP712Proxy.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,31 @@ describe('EIP712Proxy', () => {
380380
).not.to.be.reverted;
381381
});
382382

383+
it('should verify delegated revocation request sent from a different account', async () => {
384+
const revocationRequest = {
385+
uid,
386+
value: 0n
387+
};
388+
389+
const signature = await eip712ProxyUtils.signDelegatedProxyRevocation(
390+
sender,
391+
schemaId,
392+
revocationRequest.uid,
393+
revocationRequest.value,
394+
deadline
395+
);
396+
397+
await expect(
398+
proxy.connect(sender2).verifyRevoke({
399+
schema: schemaId,
400+
data: revocationRequest,
401+
signature: { v: signature.v, r: hexlify(signature.r), s: hexlify(signature.s) },
402+
revoker: await sender.getAddress(),
403+
deadline
404+
})
405+
).not.to.be.reverted;
406+
});
407+
383408
it('should revert when verifying delegated revocation request with a wrong signature', async () => {
384409
const revocationRequest = {
385410
uid,

0 commit comments

Comments
 (0)