Skip to content

Commit 04638b8

Browse files
committed
revert: transitionOpts changes
1 parent 45c2b20 commit 04638b8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

bindings/napi/stateTransition.zig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const allocator = if (builtin.mode == .Debug)
1515
else
1616
std.heap.c_allocator;
1717

18-
/// Parse a JS options object into Zig's TransitionOpt.
18+
/// Parse a JS options object into Zig's TransitionOpts.
1919
///
2020
/// Recognized fields:
2121
/// - verifyStateRoot, verifyProposer, verifySignatures: bool
@@ -93,6 +93,7 @@ pub fn stateTransition(
9393
const env = js.env();
9494
const pre_state = pre_state_value.toValue();
9595
const cached_state = try env.unwrap(CachedBeaconState, pre_state);
96+
const transition_opts = try parseOptions(options);
9697
const signed_block_bytes_slice = try signed_block_bytes.toSlice();
9798

9899
const current_epoch = st.computeEpochAtSlot(try cached_state.state.slot());
@@ -110,7 +111,7 @@ pub fn stateTransition(
110111
napi_io.get(),
111112
cached_state,
112113
signed_block,
113-
try parseOptions(options),
114+
transition_opts,
114115
);
115116
errdefer {
116117
post_state.deinit();

0 commit comments

Comments
 (0)