Skip to content

Commit 8ba1ccb

Browse files
authored
fix: remove unused msgdata (#27)
1 parent ac4bcb6 commit 8ba1ccb

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

contracts/core/Allo.sol

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -708,17 +708,6 @@ contract Allo is IAllo, Native, Initializable, Ownable, AccessControlUpgradeable
708708
}
709709
}
710710

711-
/// @dev Logic copied from ERC2771ContextUpgradeable OZ contracts
712-
/// @return calldata filtering the sender address when the trusted forward is the operator
713-
function _msgData() internal view override returns (bytes calldata) {
714-
uint256 _calldataLength = msg.data.length;
715-
if (isTrustedForwarder(msg.sender) && _calldataLength >= 20) {
716-
return msg.data[:_calldataLength - 20];
717-
} else {
718-
return super._msgData();
719-
}
720-
}
721-
722711
// =========================
723712
// ==== View Functions =====
724713
// =========================

0 commit comments

Comments
 (0)