Skip to content

Commit 77a6650

Browse files
committed
Updated format
1 parent 1153559 commit 77a6650

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/stylus/StylusDeployer.sol

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// SPDX-License-Identifier: MIT
22
pragma solidity 0.8.28;
3+
34
import {ArbWasm} from "../precompiles/ArbWasm.sol";
45

56
/// @title A Stylus contract deployer, activator and initializer
@@ -74,7 +75,7 @@ contract StylusDeployer {
7475
// initialize - this will fail if the program wasn't activated by this point
7576
// we check if initData exists to avoid calling contracts unnecessarily
7677
if (initData.length != 0) {
77-
(bool success, ) = address(newContractAddress).call{value: initValue}(initData);
78+
(bool success,) = address(newContractAddress).call{value: initValue}(initData);
7879
if (!success) {
7980
revert ContractInitializationError(newContractAddress);
8081
}
@@ -91,7 +92,7 @@ contract StylusDeployer {
9192
if (bal != 0) {
9293
// the caller must be payable, even if they dont expect to receive any balance since it value can be forced into
9394
// this contract via selfdestruct
94-
(bool sent, ) = payable(msg.sender).call{value: bal}("");
95+
(bool sent,) = payable(msg.sender).call{value: bal}("");
9596
if (!sent) {
9697
revert RefundExcessValueError(bal);
9798
}
@@ -119,7 +120,9 @@ contract StylusDeployer {
119120
}
120121

121122
/// @notice Checks whether a contract requires activation
122-
function requiresActivation(address addr) public view returns (bool) {
123+
function requiresActivation(
124+
address addr
125+
) public view returns (bool) {
123126
// currently codeHashVersion returns an error when codeHashVersion != stylus version
124127
// so we do a try/catch to to check it
125128
uint16 codeHashVersion;

src/test-helpers/NoReceiveForwarder.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ pragma solidity ^0.8.0;
44
/// @notice A call forward that doesnt implement the receive or fallback functions, so cant receive value
55
contract NoReceiveForwarder {
66
function forward(address to, bytes calldata data) public payable {
7-
(bool success, ) = address(to).call{value: msg.value}(data);
7+
(bool success,) = address(to).call{value: msg.value}(data);
88
require(success, "call forward failed");
99
}
1010
}
1111

1212
/// @notice A call forward that does implement the receive or fallback functions, so cant receive value
1313
contract ReceivingForwarder {
1414
function forward(address to, bytes calldata data) public payable {
15-
(bool success, ) = address(to).call{value: msg.value}(data);
15+
(bool success,) = address(to).call{value: msg.value}(data);
1616
require(success, "call forward failed");
1717
}
1818

0 commit comments

Comments
 (0)