Skip to content

Commit b331282

Browse files
committed
perf(f02): drop the redundant empty-array allocation in tryClaim
Assisted-by: Claude:claude-sonnet-4-6
1 parent cd178db commit b331282

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/FVMRewards.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ library FVMRewards {
461461
}
462462

463463
exitCode = _invoke(base, p);
464-
amounts = exitCode == EXIT_SUCCESS ? _decodeAmounts() : new uint256[](0);
464+
if (exitCode == EXIT_SUCCESS) amounts = _decodeAmounts();
465465
}
466466

467467
/// @notice Claims for a batch of wallets, reverting on actor error.

0 commit comments

Comments
 (0)