File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,7 @@ contract OpReceiverProxy is ERC20, Utils {
14
14
15
15
// Constants
16
16
17
- address public constant OP_GATEWAY =
18
- 0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1 ;
19
-
17
+ address public immutable OP_GATEWAY;
20
18
uint32 public immutable SENDER_CHAIN_ID;
21
19
address public immutable HYPERLANE_MAILBOX;
22
20
uint256 public immutable FEE_BPS;
@@ -30,11 +28,13 @@ contract OpReceiverProxy is ERC20, Utils {
30
28
// Constructor
31
29
32
30
constructor (
31
+ address _opGateway ,
33
32
uint32 _senderChainId ,
34
33
address _hyperlaneMailbox ,
35
34
uint256 _feeBps ,
36
35
address _opSenderProxy
37
36
) {
37
+ OP_GATEWAY = _opGateway;
38
38
SENDER_CHAIN_ID = _senderChainId;
39
39
HYPERLANE_MAILBOX = _hyperlaneMailbox;
40
40
FEE_BPS = _feeBps;
Original file line number Diff line number Diff line change @@ -3,17 +3,15 @@ pragma solidity ^0.8.28;
3
3
import {Test} from "forge-std/Test.sol " ;
4
4
5
5
import {HyperlaneMailboxMock} from "./mocks/HyperlaneMailboxMock.sol " ;
6
- import {OpBridgeMock} from "./mocks/OpBridgeMock.sol " ;
7
6
import {OpReceiverProxy} from "../src/OpReceiverProxy.sol " ;
8
7
import {IHyperlaneMailbox} from "../src/interfaces/IHyperlaneMailbox.sol " ;
9
- import {IOpBridge} from "../src/interfaces/IOpBridge.sol " ;
10
8
11
9
contract OpReceiverProxyTest is Test {
12
10
address public user;
13
11
14
- IOpBridge public opBridge;
15
12
IHyperlaneMailbox public hyperlaneMailbox;
16
13
14
+ address public opGateway;
17
15
uint32 public senderChainId;
18
16
uint256 public feeBps;
19
17
address public opSenderProxy;
@@ -24,14 +22,15 @@ contract OpReceiverProxyTest is Test {
24
22
user = address (1 );
25
23
vm.deal (user, 1000 ether);
26
24
27
- opBridge = new OpBridgeMock ();
28
25
hyperlaneMailbox = new HyperlaneMailboxMock ();
29
26
27
+ opGateway = address (2 );
30
28
senderChainId = 1 ;
31
29
feeBps = 5e15 ;
32
30
opSenderProxy = address (2 );
33
31
34
32
opReceiverProxy = new OpReceiverProxy (
33
+ opGateway,
35
34
senderChainId,
36
35
address (hyperlaneMailbox),
37
36
feeBps,
You can’t perform that action at this time.
0 commit comments