Skip to content

Commit af519b6

Browse files
committed
Merge branch 'rusowsky/fmt-solar' of github.com:foundry-rs/foundry into rusowsky/fmt-solar
2 parents a4d33e7 + 9baccbc commit af519b6

File tree

7 files changed

+54
-26
lines changed

7 files changed

+54
-26
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cast/tests/cli/main.rs

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,22 +1790,19 @@ casttest!(tx_to_request_json, |_prj, cmd| {
17901790
"#]]);
17911791
});
17921792

1793-
casttest!(
1794-
#[ignore = "reth is currently slightly broken"]
1795-
tx_using_sender_and_nonce,
1796-
|_prj, cmd| {
1797-
let rpc = "https://reth-ethereum.ithaca.xyz/rpc";
1798-
// <https://etherscan.io/tx/0x5bcd22734cca2385dc25b2d38a3d33a640c5961bd46d390dff184c894204b594>
1799-
let args = vec![
1800-
"tx",
1801-
"--from",
1802-
"0x4648451b5F87FF8F0F7D622bD40574bb97E25980",
1803-
"--nonce",
1804-
"113642",
1805-
"--rpc-url",
1806-
rpc,
1807-
];
1808-
cmd.args(args).assert_success().stdout_eq(str![[r#"
1793+
casttest!(tx_using_sender_and_nonce, |_prj, cmd| {
1794+
let rpc = next_http_archive_rpc_url();
1795+
// <https://etherscan.io/tx/0x5bcd22734cca2385dc25b2d38a3d33a640c5961bd46d390dff184c894204b594>
1796+
let args = vec![
1797+
"tx",
1798+
"--from",
1799+
"0x4648451b5F87FF8F0F7D622bD40574bb97E25980",
1800+
"--nonce",
1801+
"113642",
1802+
"--rpc-url",
1803+
rpc.as_str(),
1804+
];
1805+
cmd.args(args).assert_success().stdout_eq(str![[r#"
18091806
18101807
blockHash 0x29518c1cea251b1bda5949a9b039722604ec1fb99bf9d8124cfe001c95a50bdc
18111808
blockNumber 22287055
@@ -1829,8 +1826,7 @@ value 0
18291826
yParity 1
18301827
...
18311828
"#]]);
1832-
}
1833-
);
1829+
});
18341830

18351831
// ensure receipt or code is required
18361832
casttest!(send_requires_to, |_prj, cmd| {

crates/fmt/testdata/DocComments/wrap-comments.fmt.sol

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ contract HelloWorld {
1616
*/
1717
Person public theDude;
1818

19-
// Will this long comment be wrapped
20-
// leaving an orphan word?
19+
/// Will this long comment be wrapped
20+
/// leaving an
21+
/// orphan word?
2122
Person public anotherDude;
2223

2324
/// Constructs the dude

crates/fmt/testdata/ReprosCalls/110.fmt.sol

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,15 @@ function returnLongBinaryOp() returns (bytes32) {
8080
uint256(Feature.unwrap(feature)) << 128 | uint256(block.chainid) << 64 | uint256(Nonce.unwrap(nonce))
8181
);
8282
}
83+
84+
function new_y(uint256 x, uint256 dx, uint256 x_basis, uint256 y, uint256 y_basis)
85+
external
86+
pure
87+
returns (uint256)
88+
{
89+
return _get_y(
90+
x * _VELODROME_TOKEN_BASIS / x_basis,
91+
dx * _VELODROME_TOKEN_BASIS / x_basis,
92+
y * _VELODROME_TOKEN_BASIS / y_basis
93+
);
94+
}

crates/fmt/testdata/ReprosCalls/120.fmt.sol

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,11 @@ function returnLongBinaryOp() returns (bytes32) {
7474
return
7575
bytes32(uint256(Feature.unwrap(feature)) << 128 | uint256(block.chainid) << 64 | uint256(Nonce.unwrap(nonce)));
7676
}
77+
78+
function new_y(uint256 x, uint256 dx, uint256 x_basis, uint256 y, uint256 y_basis) external pure returns (uint256) {
79+
return _get_y(
80+
x * _VELODROME_TOKEN_BASIS / x_basis,
81+
dx * _VELODROME_TOKEN_BASIS / x_basis,
82+
y * _VELODROME_TOKEN_BASIS / y_basis
83+
);
84+
}

crates/fmt/testdata/ReprosCalls/80.fmt.sol

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,17 @@ function returnLongBinaryOp() returns (bytes32) {
111111
| uint256(Nonce.unwrap(nonce))
112112
);
113113
}
114+
115+
function new_y(
116+
uint256 x,
117+
uint256 dx,
118+
uint256 x_basis,
119+
uint256 y,
120+
uint256 y_basis
121+
) external pure returns (uint256) {
122+
return _get_y(
123+
x * _VELODROME_TOKEN_BASIS / x_basis,
124+
dx * _VELODROME_TOKEN_BASIS / x_basis,
125+
y * _VELODROME_TOKEN_BASIS / y_basis
126+
);
127+
}

crates/forge/tests/it/repros.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -415,10 +415,7 @@ test_repro!(10552);
415415
test_repro!(10586);
416416

417417
// https://github.com/foundry-rs/foundry/issues/10957
418-
test_repro!(
419-
#[ignore = "reth is currently slightly broken"]
420-
10957
421-
);
418+
test_repro!(10957);
422419

423420
// https://github.com/foundry-rs/foundry/issues/11353
424421
test_repro!(11353);

0 commit comments

Comments
 (0)