Adjust ERC2771Context._msgData for msg.data.length < 20 (#4484)

This commit is contained in:
Francisco
2023-07-27 22:30:41 +02:00
committed by GitHub
parent 7c02b5cab2
commit 9445f96223
4 changed files with 26 additions and 5 deletions

View File

@ -0,0 +1,5 @@
---
'openzeppelin-solidity': patch
---
`ERC2771Context`: Prevent revert in `_msgData()` when 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). Return the full calldata in that case.