Skip to content

Commit cbcf210

Browse files
committed
added in expiration stand-in for owner calling-as-self
1 parent dec5e80 commit cbcf210

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/common/relay/core/GasRelayHelper.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ abstract contract GasRelayHelper is GasRelayConstants {
4444
return (msg.sender, 0, false, false);
4545
}
4646

47+
// If owner is calling as itself, treat expiration as infinite
4748
if (!_isCallerSessionKey && !_isCallerTask) {
48-
return (msg.sender, 0, false, false);
49+
return (msg.sender, type(uint64).max, false, false);
4950
}
5051

5152
if (msg.sender == address(this) || msg.sender == _underlyingMsgSender) {

0 commit comments

Comments
 (0)