Skip to content

Commit c6e1b0a

Browse files
authored
🥢 Fix test typos (#1385)
1 parent b09e6f4 commit c6e1b0a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎test/SafeTransferLib.t.sol

+6-6
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ contract SafeTransferLibTest is SoladyTest {
273273
MockETHRecipient recipient = new MockETHRecipient(false, true);
274274

275275
{
276-
uint256 receipientBalanceBefore = address(recipient).balance;
276+
uint256 recipientBalanceBefore = address(recipient).balance;
277277
uint256 senderBalanceBefore = address(this).balance;
278278
uint256 r = uint256(keccak256(abi.encode(randomness))) % 3;
279279
// Send to a griever with a gas stipend. Should not revert.
@@ -288,31 +288,31 @@ contract SafeTransferLibTest is SoladyTest {
288288
} else {
289289
this.forceSafeTransferETH(address(recipient), amount);
290290
}
291-
assertEq(address(recipient).balance - receipientBalanceBefore, amount);
291+
assertEq(address(recipient).balance - recipientBalanceBefore, amount);
292292
assertEq(senderBalanceBefore - address(this).balance, amount);
293293
// We use the `SELFDESTRUCT` to send, and thus the `garbage` should NOT be updated.
294294
assertTrue(recipient.garbage() == 0);
295295
}
296296

297297
{
298-
uint256 receipientBalanceBefore = address(recipient).balance;
298+
uint256 recipientBalanceBefore = address(recipient).balance;
299299
uint256 senderBalanceBefore = address(this).balance;
300300
// Send more than remaining balance without gas stipend. Should revert.
301301
vm.expectRevert(SafeTransferLib.ETHTransferFailed.selector);
302302
this.forceSafeTransferETH(address(recipient), address(this).balance + 1, gasleft());
303-
assertEq(address(recipient).balance - receipientBalanceBefore, 0);
303+
assertEq(address(recipient).balance - recipientBalanceBefore, 0);
304304
assertEq(senderBalanceBefore - address(this).balance, 0);
305305
// We did not send anything, and thus the `garbage` should NOT be updated.
306306
assertTrue(recipient.garbage() == 0);
307307
}
308308

309309
{
310-
uint256 receipientBalanceBefore = address(recipient).balance;
310+
uint256 recipientBalanceBefore = address(recipient).balance;
311311
uint256 senderBalanceBefore = address(this).balance;
312312
// Send all the remaining balance without gas stipend. Should not revert.
313313
amount = address(this).balance;
314314
this.forceSafeTransferETH(address(recipient), amount, gasleft());
315-
assertEq(address(recipient).balance - receipientBalanceBefore, amount);
315+
assertEq(address(recipient).balance - recipientBalanceBefore, amount);
316316
assertEq(senderBalanceBefore - address(this).balance, amount);
317317
// We use the normal `CALL` to send, and thus the `garbage` should be updated.
318318
assertTrue(recipient.garbage() != 0);

0 commit comments

Comments
 (0)