File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments