Make ERC2771Context return original sender address if msg.data.length <= 20 (#4481)

This commit is contained in:
Ernesto García
2023-07-25 15:48:23 -06:00
committed by GitHub
parent 19293f3ecd
commit 28d9ac2bdb
3 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
'openzeppelin-solidity': patch
---
`ERC2771Context`: Return the forwarder address whenever the `msg.data` of a call originating from a trusted forwarder is not long enough to contain the request signer address (i.e. `msg.data.length` is less than 20 bytes), as specified by ERC-2771.