Skip to content

Commit 8ecf5a1

Browse files
committed
use method helpers
1 parent ad9758d commit 8ecf5a1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

bindings/napi/blst.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -544,12 +544,12 @@ pub fn register(env: napi.Env, exports: napi.Value) !void {
544544
&[_]napi.c.napi_property_descriptor{
545545
method(0, Signature_toBytes),
546546
method(0, Signature_toBytesCompress),
547-
.{ .utf8name = "validate", .method = napi.wrapCallback(1, Signature_validate) },
547+
method(1, Signature_validate),
548548
},
549549
);
550550
try sig_ctor.defineProperties(&[_]napi.c.napi_property_descriptor{
551-
.{ .utf8name = "fromBytes", .method = napi.wrapCallback(1, Signature_fromBytes) },
552-
.{ .utf8name = "aggregate", .method = napi.wrapCallback(1, Signature_aggregate) },
551+
method(1, Signature_fromBytes),
552+
method(1, Signature_aggregate),
553553
});
554554

555555
try blst_obj.setNamedProperty("SecretKey", sk_ctor);

0 commit comments

Comments
 (0)