Skip to content

Commit 7c01713

Browse files
committed
fix: add missing args to assertions
1 parent bb1184e commit 7c01713

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/blinding/blinding.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ class BlindingWrapper : public Napi::ObjectWrap<BlindingWrapper> {
1818

1919
public:
2020
BlindingWrapper(const Napi::CallbackInfo& info) : Napi::ObjectWrap<BlindingWrapper>{info} {
21-
throw std::invalid_argument(
22-
"BlindingWrapper is static and doesn't need to be constructed");
21+
throw std::invalid_argument("BlindingWrapper is static and doesn't need to be constructed");
2322
}
2423

2524
static void Init(Napi::Env env, Napi::Object exports) {
@@ -79,11 +78,13 @@ class BlindingWrapper : public Napi::ObjectWrap<BlindingWrapper> {
7978
if (obj.IsEmpty())
8079
throw std::invalid_argument("blindVersionSignRequest received empty");
8180

82-
assertIsUInt8Array(obj.Get("ed25519SecretKey"));
81+
assertIsUInt8Array(
82+
obj.Get("ed25519SecretKey"), "blindVersionSignRequest.ed25519SecretKey");
8383
auto ed25519_secret_key = toCppBuffer(
8484
obj.Get("ed25519SecretKey"), "blindVersionSignRequest.ed25519SecretKey");
8585

86-
assertIsNumber(obj.Get("sigTimestampSeconds"));
86+
assertIsNumber(
87+
obj.Get("sigTimestampSeconds"), "blindVersionSignRequest.sigTimestampSeconds");
8788
auto sig_timestamp = toCppInteger(
8889
obj.Get("sigTimestampSeconds"),
8990
"blindVersionSignRequest.sigTimestampSeconds",

0 commit comments

Comments
 (0)