@@ -22,12 +22,13 @@ abstract contract BridgeL2 is SignetL2, BurnMintERC20 {
2222
2323 /// @notice Bridges assets into the rollup for a given recipient.
2424 function _bridgeIn (address recipient , uint256 amount , RollupOrders.Input[] memory inputs ) internal virtual {
25+ _mint (recipient, amount);
26+
2527 RollupOrders.Output[] memory outputs = new RollupOrders.Output [](1 );
2628 outputs[0 ] = makeHostOutput (HOST_ASSET, amount, HOST_BANK);
2729
2830 ORDERS.initiate (block .timestamp , inputs, outputs);
2931
30- _mint (recipient, amount);
3132 }
3233
3334 /// @notice Bridges assets into the rollup for a given recipient.
@@ -41,12 +42,13 @@ abstract contract BridgeL2 is SignetL2, BurnMintERC20 {
4142 /// This transaction should be paired with some off-chain logic that fills
4243 /// orders from the L1 bank.
4344 function _bridgeOut (address recipient , uint256 amount , RollupOrders.Input[] memory inputs ) internal virtual {
45+ burnFrom (msg .sender , amount);
46+
4447 RollupOrders.Output[] memory outputs = new RollupOrders.Output [](1 );
4548 outputs[0 ] = makeHostOutput (HOST_ASSET, amount, recipient);
4649
4750 ORDERS.initiate (block .timestamp , inputs, outputs);
4851
49- _burn (msg .sender , amount);
5052 }
5153
5254 /// @notice Burn asset on L2, and create an order to bridge out asset to
0 commit comments