Skip to content

Commit

Permalink
fix rollup creator failure
Browse files Browse the repository at this point in the history
  • Loading branch information
godzillaba committed Sep 17, 2024
1 parent b69072d commit 3cd4f14
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/bridge/ERC20Bridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ contract ERC20Bridge is AbsBridge, IERC20Bridge {

function _transferFunds(uint256 amount) internal override {
// fetch native token from Inbox
IERC20(nativeToken).safeTransferFrom(msg.sender, address(this), amount); // note: potential zero transfer
if (amount == 0) {
return;
}
IERC20(nativeToken).safeTransferFrom(msg.sender, address(this), amount);
}

function _executeLowLevelCall(
Expand Down

0 comments on commit 3cd4f14

Please sign in to comment.