File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const allocator = if (builtin.mode == .Debug)
1515else
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 ();
You can’t perform that action at this time.
0 commit comments