Skip to content

Commit c840750

Browse files
committed
fix: test tweaks
1 parent 5ec0dbd commit c840750

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/OpReceiverProxy.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ contract OpReceiverProxy is ERC20, Utils {
1414

1515
// Constants
1616

17-
address public constant OP_GATEWAY =
18-
0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1;
19-
17+
address public immutable OP_GATEWAY;
2018
uint32 public immutable SENDER_CHAIN_ID;
2119
address public immutable HYPERLANE_MAILBOX;
2220
uint256 public immutable FEE_BPS;
@@ -30,11 +28,13 @@ contract OpReceiverProxy is ERC20, Utils {
3028
// Constructor
3129

3230
constructor(
31+
address _opGateway,
3332
uint32 _senderChainId,
3433
address _hyperlaneMailbox,
3534
uint256 _feeBps,
3635
address _opSenderProxy
3736
) {
37+
OP_GATEWAY = _opGateway;
3838
SENDER_CHAIN_ID = _senderChainId;
3939
HYPERLANE_MAILBOX = _hyperlaneMailbox;
4040
FEE_BPS = _feeBps;

test/OpReceiverProxyTest.sol

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ pragma solidity ^0.8.28;
33
import {Test} from "forge-std/Test.sol";
44

55
import {HyperlaneMailboxMock} from "./mocks/HyperlaneMailboxMock.sol";
6-
import {OpBridgeMock} from "./mocks/OpBridgeMock.sol";
76
import {OpReceiverProxy} from "../src/OpReceiverProxy.sol";
87
import {IHyperlaneMailbox} from "../src/interfaces/IHyperlaneMailbox.sol";
9-
import {IOpBridge} from "../src/interfaces/IOpBridge.sol";
108

119
contract OpReceiverProxyTest is Test {
1210
address public user;
1311

14-
IOpBridge public opBridge;
1512
IHyperlaneMailbox public hyperlaneMailbox;
1613

14+
address public opGateway;
1715
uint32 public senderChainId;
1816
uint256 public feeBps;
1917
address public opSenderProxy;
@@ -24,14 +22,15 @@ contract OpReceiverProxyTest is Test {
2422
user = address(1);
2523
vm.deal(user, 1000 ether);
2624

27-
opBridge = new OpBridgeMock();
2825
hyperlaneMailbox = new HyperlaneMailboxMock();
2926

27+
opGateway = address(2);
3028
senderChainId = 1;
3129
feeBps = 5e15;
3230
opSenderProxy = address(2);
3331

3432
opReceiverProxy = new OpReceiverProxy(
33+
opGateway,
3534
senderChainId,
3635
address(hyperlaneMailbox),
3736
feeBps,

0 commit comments

Comments
 (0)