Make ERC2771Context return original sender address if msg.data.length <= 20 (#4481)
(cherry picked from commit 28d9ac2bdb)
This commit is contained in:
committed by
Francisco Giordano
parent
d26025b410
commit
7ec712baa5
5
.changeset/unlucky-beans-obey.md
Normal file
5
.changeset/unlucky-beans-obey.md
Normal 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.
|
||||
Reference in New Issue
Block a user