Skip to content

Commit

Permalink
fix: out-of-gas error when deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
yiweichi committed Nov 27, 2024
1 parent 8ff2948 commit 6493488
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/deterministic/DeployScroll.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,8 @@ contract DeployScroll is DeterministicDeployment {

if (l1MessengerBalance < amountToLock) {
uint256 amountToSend = amountToLock - l1MessengerBalance;
payable(L1_SCROLL_MESSENGER_PROXY_ADDR).transfer(amountToSend);
(bool sent, bytes memory data) = payable(L1_SCROLL_MESSENGER_PROXY_ADDR).call{value: amountToSend}("");
require(sent, "[ERROR] failed to loken tokens on layer 1");
}
} else {
uint256 l1GasTokenGatewayBalance = IERC20Metadata(L1_GAS_TOKEN_ADDR).balanceOf(
Expand Down

0 comments on commit 6493488

Please sign in to comment.