Skip to content

Commit a648b28

Browse files
committed
fix access cb(0)
1 parent 222e605 commit a648b28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bindings/napi/BeaconStateView.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pub fn BeaconStateView_ctor(env: napi.Env, cb: napi.CallbackInfo(0)) !napi.Value
4545
pub fn BeaconStateView_createFromBytes(env: napi.Env, cb: napi.CallbackInfo(1)) !napi.Value {
4646
const ctor = cb.this();
4747

48-
const bytes_info = try cb.arg(1).getTypedarrayInfo();
48+
const bytes_info = try cb.arg(0).getTypedarrayInfo();
4949
const state = try allocator.create(AnyBeaconState);
5050
errdefer allocator.destroy(state);
5151

0 commit comments

Comments
 (0)