Skip to content

Commit

Permalink
Update EIP-6315: Restrict the usage of EIP-2771 (ethereum#6658)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandapip1 authored and axelcabee committed May 6, 2023
1 parent a044e44 commit 7ff69e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EIPS/eip-6315.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ interface IForwarder {

### Extracting the Sender and Forwarder

When a function of a Recipient is called, the Recipient MUST staticcall the `isForwardedTransaction()` function of the caller. If this either reverts or returns the boolean value false, the transaction MUST be treated normally, with the sender being the caller, and the Forwarder set to the zero address. If this returns the boolean value true, the transaction MUST be considered a forwarded transaction with the sender being extracted as defined in [ERC-2771](./eip-2771.md), and the Forwarder set to the caller.
When a function of a Recipient is called, the Recipient MUST staticcall the `isForwardedTransaction()` function of the caller. If this either reverts or returns the boolean value false, the transaction MUST be treated normally, with the sender being the caller, and the Forwarder set to the zero address. If this returns the boolean value true, the transaction MUST be considered a forwarded transaction with the sender being extracted as defined in [ERC-2771](./eip-2771.md#extracting-the-transaction-signer-address)'s "Extracting the Transaction Signer Address" section, and the Forwarder set to the caller.

### Recipient Extensions

Expand Down

0 comments on commit 7ff69e0

Please sign in to comment.