Forwarded Context
ForwardedContext
_trustedForwarder
ADDRESS_SIZE_BYTES
constructor
isTrustedForwarder
Checks if forwarder
address provided is the trustedForwarder set in the constructor.
_msgSender
Gets sender of the transaction of signer if meta transaction.
If the tx is sent by the trusted forwarded, we assume it is a meta transaction and the signer address is encoded in the last 20 bytes of msg.data.
Name | Type | Description |
---|---|---|
sender | address | address of sender of the transaction of signer if meta transaction. |
_msgData
Gets msg.data of the transaction or meta-tx.
If the tx is sent by the trusted forwarded, we assume it is a meta transaction and msg.data must have the signer address (encoded in the last 20 bytes of msg.data) removed.
Name | Type | Description |
---|---|---|
[0] | bytes | msg.data of the transaction of msg.data - signer address if meta transaction. |