Skip to content

Commit 6493488

Browse files
committed
fix: out-of-gas error when deploy
1 parent 8ff2948 commit 6493488

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/deterministic/DeployScroll.s.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,8 @@ contract DeployScroll is DeterministicDeployment {
13681368

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

0 commit comments

Comments
 (0)