Skip to content

Commit dd5a6c4

Browse files
committed
Github Action: Update contract
1 parent 3c45b9e commit dd5a6c4

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

tutorials/token-bridge-e2e/packages/l1-contracts/contracts/TokenPortal.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ contract TokenPortal {
3535
returns (bytes32)
3636
{
3737
// Preamble
38-
IInbox inbox = registry.getInbox();
38+
IInbox inbox = registry.getRollup().INBOX();
3939
DataStructures.L2Actor memory actor = DataStructures.L2Actor(l2Bridge, 1);
4040

4141
// Hash the message content to be reconstructed in the receiving contract
@@ -62,7 +62,7 @@ contract TokenPortal {
6262
bytes32 _secretHashForL2MessageConsumption
6363
) external returns (bytes32) {
6464
// Preamble
65-
IInbox inbox = registry.getInbox();
65+
IInbox inbox = registry.getRollup().INBOX();
6666
DataStructures.L2Actor memory actor = DataStructures.L2Actor(l2Bridge, 1);
6767

6868
// Hash the message content to be reconstructed in the receiving contract
@@ -111,7 +111,7 @@ contract TokenPortal {
111111
)
112112
});
113113

114-
IOutbox outbox = registry.getOutbox();
114+
IOutbox outbox = registry.getRollup().OUTBOX();
115115

116116
outbox.consume(message, _l2BlockNumber, _leafIndex, _path);
117117

tutorials/uniswap-integration-e2e/packages/l1-contracts/contracts/TokenPortal.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ contract TokenPortal {
3535
returns (bytes32)
3636
{
3737
// Preamble
38-
IInbox inbox = registry.getInbox();
38+
IInbox inbox = registry.getRollup().INBOX();
3939
DataStructures.L2Actor memory actor = DataStructures.L2Actor(l2Bridge, 1);
4040

4141
// Hash the message content to be reconstructed in the receiving contract
@@ -62,7 +62,7 @@ contract TokenPortal {
6262
bytes32 _secretHashForL2MessageConsumption
6363
) external returns (bytes32) {
6464
// Preamble
65-
IInbox inbox = registry.getInbox();
65+
IInbox inbox = registry.getRollup().INBOX();
6666
DataStructures.L2Actor memory actor = DataStructures.L2Actor(l2Bridge, 1);
6767

6868
// Hash the message content to be reconstructed in the receiving contract
@@ -111,7 +111,7 @@ contract TokenPortal {
111111
)
112112
});
113113

114-
IOutbox outbox = registry.getOutbox();
114+
IOutbox outbox = registry.getRollup().OUTBOX();
115115

116116
outbox.consume(message, _l2BlockNumber, _leafIndex, _path);
117117

tutorials/uniswap-integration-e2e/packages/l1-contracts/contracts/UniswapPortal.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ contract UniswapPortal {
100100

101101
// Consume the message from the outbox
102102
{
103-
IOutbox outbox = registry.getOutbox();
103+
IOutbox outbox = registry.getRollup().OUTBOX();
104104

105105
outbox.consume(
106106
DataStructures.L2ToL1Msg({
@@ -204,7 +204,7 @@ contract UniswapPortal {
204204

205205
// Consume the message from the outbox
206206
{
207-
IOutbox outbox = registry.getOutbox();
207+
IOutbox outbox = registry.getRollup().OUTBOX();
208208

209209
outbox.consume(
210210
DataStructures.L2ToL1Msg({

0 commit comments

Comments
 (0)