We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 222e605 commit a648b28Copy full SHA for a648b28
1 file changed
bindings/napi/BeaconStateView.zig
@@ -45,7 +45,7 @@ pub fn BeaconStateView_ctor(env: napi.Env, cb: napi.CallbackInfo(0)) !napi.Value
45
pub fn BeaconStateView_createFromBytes(env: napi.Env, cb: napi.CallbackInfo(1)) !napi.Value {
46
const ctor = cb.this();
47
48
- const bytes_info = try cb.arg(1).getTypedarrayInfo();
+ const bytes_info = try cb.arg(0).getTypedarrayInfo();
49
const state = try allocator.create(AnyBeaconState);
50
errdefer allocator.destroy(state);
51
0 commit comments