Skip to content

Commit cd284e6

Browse files
committed
remove unused allocator params
1 parent 3f02498 commit cd284e6

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

src/state_transition/block/process_block.zig

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,7 @@ pub fn processBlock(
6262
std.debug.assert(std.mem.eql(u8, &expected, &actual));
6363
},
6464
}
65-
try processWithdrawals(
66-
allocator,
67-
cached_state,
68-
expected_withdrawals_result,
69-
);
65+
try processWithdrawals(cached_state, expected_withdrawals_result);
7066
}
7167

7268
try processExecutionPayload(

src/state_transition/block/process_withdrawals.zig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ const WithdrawalsResult = struct {
3434
};
3535

3636
pub fn processWithdrawals(
37-
_: Allocator,
3837
cached_state: *const CachedBeaconStateAllForks,
3938
expected_withdrawals_result: WithdrawalsResult,
4039
) !void {

test/int/process_withdrawals.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ test "process withdrawals - sanity" {
66

77
var ewr = try getExpectedWithdrawalsResult(allocator, test_state.cached_state);
88
defer ewr.deinit(allocator);
9-
try processWithdrawals(allocator, test_state.cached_state, ewr);
9+
try processWithdrawals(test_state.cached_state, ewr);
1010
}
1111

1212
const std = @import("std");

0 commit comments

Comments
 (0)