@@ -226,8 +226,7 @@ Napi::Value MetaGroupWrapper::metaMakeDump(const Napi::CallbackInfo& info) {
226226 // NOTE: the keys have to be in ascii-sorted order:
227227 combined.append (" info" , session::to_string (this ->meta_group ->info ->make_dump ()));
228228 combined.append (" keys" , session::to_string (this ->meta_group ->keys ->make_dump ()));
229- combined.append (
230- " members" , session::to_string (this ->meta_group ->members ->make_dump ()));
229+ combined.append (" members" , session::to_string (this ->meta_group ->members ->make_dump ()));
231230 auto to_dump = std::move (combined).str ();
232231
233232 return session::to_vector (to_dump);
@@ -328,7 +327,7 @@ Napi::Value MetaGroupWrapper::metaMerge(const Napi::CallbackInfo& info) {
328327 assertIsArray (groupInfo);
329328 auto asArr = groupInfo.As <Napi::Array>();
330329
331- std::vector<std::pair<std::string, std::span< const unsigned char >>> conf_strs;
330+ std::vector<std::pair<std::string, std::vector< unsigned char >>> conf_strs;
332331 conf_strs.reserve (asArr.Length ());
333332
334333 for (uint32_t i = 0 ; i < asArr.Length (); i++) {
@@ -342,7 +341,7 @@ Napi::Value MetaGroupWrapper::metaMerge(const Napi::CallbackInfo& info) {
342341 assertIsUInt8Array (itemObject.Get (" data" ), " groupInfo merge" );
343342 conf_strs.emplace_back (
344343 toCppString (itemObject.Get (" hash" ), " meta.merge" ),
345- toCppBufferView (itemObject.Get (" data" ), " meta.merge" ));
344+ toCppBuffer (itemObject.Get (" data" ), " meta.merge" ));
346345 }
347346
348347 if (conf_strs.size ()) {
@@ -355,7 +354,7 @@ Napi::Value MetaGroupWrapper::metaMerge(const Napi::CallbackInfo& info) {
355354 assertIsArray (groupMember);
356355 auto asArr = groupMember.As <Napi::Array>();
357356
358- std::vector<std::pair<std::string, std::span< const unsigned char >>> conf_strs;
357+ std::vector<std::pair<std::string, std::vector< unsigned char >>> conf_strs;
359358 conf_strs.reserve (asArr.Length ());
360359
361360 for (uint32_t i = 0 ; i < asArr.Length (); i++) {
@@ -369,7 +368,7 @@ Napi::Value MetaGroupWrapper::metaMerge(const Napi::CallbackInfo& info) {
369368 assertIsUInt8Array (itemObject.Get (" data" ), " groupMember merge" );
370369 conf_strs.emplace_back (
371370 toCppString (itemObject.Get (" hash" ), " meta.merge" ),
372- toCppBufferView (itemObject.Get (" data" ), " meta.merge" ));
371+ toCppBuffer (itemObject.Get (" data" ), " meta.merge" ));
373372 }
374373
375374 if (conf_strs.size ()) {
@@ -822,7 +821,8 @@ Napi::Value MetaGroupWrapper::makeSwarmSubAccount(const Napi::CallbackInfo& info
822821 assertIsString (info[0 ]);
823822
824823 auto memberPk = toCppString (info[0 ], " makeSwarmSubAccount" );
825- std::vector<unsigned char > subaccount = this ->meta_group ->keys ->swarm_make_subaccount (memberPk);
824+ std::vector<unsigned char > subaccount =
825+ this ->meta_group ->keys ->swarm_make_subaccount (memberPk);
826826
827827 session::nodeapi::checkOrThrow (
828828 subaccount.size () == 100 , " expected subaccount to be 100 bytes long" );
@@ -837,7 +837,8 @@ Napi::Value MetaGroupWrapper::swarmSubAccountToken(const Napi::CallbackInfo& inf
837837 assertIsString (info[0 ]);
838838
839839 auto memberPk = toCppString (info[0 ], " swarmSubAccountToken" );
840- std::vector<unsigned char > subaccount = this ->meta_group ->keys ->swarm_subaccount_token (memberPk);
840+ std::vector<unsigned char > subaccount =
841+ this ->meta_group ->keys ->swarm_subaccount_token (memberPk);
841842
842843 session::nodeapi::checkOrThrow (
843844 subaccount.size () == 36 , " expected subaccount token to be 36 bytes long" );
0 commit comments