@@ -49,7 +49,7 @@ static const uint8_t PSBT_MAGIC_PREFIX[5] = { 0x70, 0x73, 0x62, 0x74, 0xFF }; //
4949
5050static bool is_green_multisig_signers (const uint32_t network_id , const key_iter * iter , struct ext_key * recovery_hdkey )
5151{
52- JADE_ASSERT (network_id != WALLY_NETWORK_NONE );
52+ JADE_ASSERT (network_id != NETWORK_NONE );
5353 JADE_ASSERT (iter && iter -> is_valid );
5454
5555 const size_t num_keys = key_iter_get_num_keys (iter );
@@ -145,7 +145,7 @@ static bool verify_ga_script_matches(const uint32_t network_id, const struct ext
145145 const struct ext_key * recovery_key , const uint32_t * path , const size_t path_len , const uint8_t * target_script ,
146146 const size_t target_script_len )
147147{
148- JADE_ASSERT (network_id != WALLY_NETWORK_NONE );
148+ JADE_ASSERT (network_id != NETWORK_NONE );
149149 JADE_ASSERT (path );
150150 JADE_ASSERT (target_script );
151151 JADE_ASSERT (target_script_len );
@@ -292,7 +292,7 @@ static bool verify_descriptor_script_matches_impl(const char* descriptor_name, c
292292{
293293 JADE_ASSERT (descriptor_name );
294294 JADE_ASSERT (descriptor );
295- JADE_ASSERT (network_id != WALLY_NETWORK_NONE );
295+ JADE_ASSERT (network_id != NETWORK_NONE );
296296 JADE_ASSERT (target_script );
297297 JADE_ASSERT (target_script_len );
298298
@@ -324,7 +324,7 @@ static bool verify_descriptor_script_matches(const char* descriptor_name, const
324324{
325325 JADE_ASSERT (descriptor_name );
326326 JADE_ASSERT (descriptor );
327- JADE_ASSERT (network_id != WALLY_NETWORK_NONE );
327+ JADE_ASSERT (network_id != NETWORK_NONE );
328328 JADE_ASSERT (path );
329329 JADE_ASSERT (path_len );
330330 JADE_ASSERT (iter && iter -> is_valid );
@@ -411,7 +411,7 @@ static bool get_suitable_descriptor_record(const key_iter* iter, const uint32_t*
411411 JADE_ASSERT (iter && iter -> is_valid );
412412 JADE_ASSERT (target_script );
413413 JADE_ASSERT (target_script_len );
414- JADE_ASSERT (network_id != WALLY_NETWORK_NONE );
414+ JADE_ASSERT (network_id != NETWORK_NONE );
415415 JADE_ASSERT (wallet_name );
416416 JADE_ASSERT (wallet_name_len );
417417 JADE_ASSERT (descriptor );
@@ -456,7 +456,7 @@ static void validate_any_change_outputs(const uint32_t network_id, struct wally_
456456 const char * wallet_name , const multisig_data_t * multisig_data , const descriptor_data_t * descriptor ,
457457 output_info_t * output_info )
458458{
459- JADE_ASSERT (network_id != WALLY_NETWORK_NONE );
459+ JADE_ASSERT (network_id != NETWORK_NONE );
460460 JADE_ASSERT (psbt );
461461 JADE_ASSERT (signing_flags );
462462 // wallet_name, multisig_data and descriptor optional
@@ -622,7 +622,7 @@ int sign_psbt(const uint32_t network_id, struct wally_psbt* psbt, const char** e
622622{
623623 JADE_ASSERT (psbt );
624624 JADE_INIT_OUT_PPTR (errmsg );
625- JADE_ASSERT (network_id != WALLY_NETWORK_NONE );
625+ JADE_ASSERT (network_id != NETWORK_NONE );
626626
627627 // Elements/PSET not supported
628628 size_t is_elements = 0 ;
0 commit comments