Skip to content

Commit 9feb7a9

Browse files
committed
forge fmt
1 parent b4d242c commit 9feb7a9

File tree

5 files changed

+10
-15
lines changed

5 files changed

+10
-15
lines changed

.env.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ETHERSCAN_API_KEY=

foundry.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ libs = ["lib"]
55
evm_version = "prague"
66
solc_version = "0.8.28"
77

8-
rpc_endpoints = { sepolia = "https://sepolia.drpc.org", gnosis = "http://gnosis-erigon.dappnode:8545", ethereum = "https://eth.llamarpc.com" }
9-
etherscan_api_key="NAEIIEHN69F6EGTBQ18W4UIZXKJ36SD7ZN"
108

9+
[rpc_endpoints]
10+
sepolia = "https://sepolia.drpc.org"
11+
gnosis = "http://gnosis-erigon.dappnode:8545"
12+
ethereum = "https://eth.llamarpc.com"

script/BatchCallAndSponsor.s.sol

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ contract BatchCallAndSponsorScript is Script {
5353

5454
// Token transfer
5555
calls[1] = BatchCallAndSponsor.Call({
56-
to: address(token),
57-
value: 0,
58-
data: abi.encodeCall(ERC20.transfer, (BOB_ADDRESS, 100e18))
56+
to: address(token), value: 0, data: abi.encodeCall(ERC20.transfer, (BOB_ADDRESS, 100e18))
5957
});
6058

6159
vm.signAndAttachDelegation(address(implementation), ALICE_PK);

script/PreviewAddress.s.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ contract PreviewAddress is Script {
99
function run() external view {
1010
uint256 deployerPk = vm.envUint("DEPLOYER_KEY");
1111
address deployer = vm.addr(deployerPk);
12-
12+
1313
console2.log("===========================================");
1414
console2.log("CREATE2 Deployment Preview");
1515
console2.log("===========================================");

test/BatchCallAndSponsor.t.sol

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ contract BatchCallAndSponsorTest is Test {
4646

4747
// Token transfer
4848
calls[1] = BatchCallAndSponsor.Call({
49-
to: address(token),
50-
value: 0,
51-
data: abi.encodeCall(ERC20.transfer, (BOB_ADDRESS, 100e18))
49+
to: address(token), value: 0, data: abi.encodeCall(ERC20.transfer, (BOB_ADDRESS, 100e18))
5250
});
5351

5452
vm.signAndAttachDelegation(address(implementation), ALICE_PK);
@@ -113,9 +111,7 @@ contract BatchCallAndSponsorTest is Test {
113111
console2.log("Test wrong signature: Execution should revert with 'Invalid signature'.");
114112
BatchCallAndSponsor.Call[] memory calls = new BatchCallAndSponsor.Call[](1);
115113
calls[0] = BatchCallAndSponsor.Call({
116-
to: address(token),
117-
value: 0,
118-
data: abi.encodeCall(MockERC20.mint, (BOB_ADDRESS, 50))
114+
to: address(token), value: 0, data: abi.encodeCall(MockERC20.mint, (BOB_ADDRESS, 50))
119115
});
120116

121117
// Build the encoded call data.
@@ -145,9 +141,7 @@ contract BatchCallAndSponsorTest is Test {
145141
console2.log("Test replay attack: Reusing the same signature should revert.");
146142
BatchCallAndSponsor.Call[] memory calls = new BatchCallAndSponsor.Call[](1);
147143
calls[0] = BatchCallAndSponsor.Call({
148-
to: address(token),
149-
value: 0,
150-
data: abi.encodeCall(MockERC20.mint, (BOB_ADDRESS, 30))
144+
to: address(token), value: 0, data: abi.encodeCall(MockERC20.mint, (BOB_ADDRESS, 30))
151145
});
152146

153147
// Build encoded call data.

0 commit comments

Comments
 (0)