25
25
26
26
bool apps_btc_confirm_multisig_basic (
27
27
const char * title ,
28
- BTCCoin coin ,
28
+ const app_btc_coin_params_t * params ,
29
29
const char * name ,
30
30
const BTCScriptConfig_Multisig * multisig )
31
31
{
@@ -36,7 +36,7 @@ bool apps_btc_confirm_multisig_basic(
36
36
"%lu-of-%lu\n%s multisig" ,
37
37
(unsigned long )multisig -> threshold ,
38
38
(unsigned long )multisig -> xpubs_count ,
39
- btc_common_coin_name ( coin ) );
39
+ params -> name );
40
40
if (snprintf_result < 0 || snprintf_result >= (int )sizeof (basic_info )) {
41
41
Abort ("apps_btc_confirm_multisig/0" );
42
42
}
@@ -60,7 +60,7 @@ bool apps_btc_confirm_multisig_basic(
60
60
61
61
bool apps_btc_confirm_multisig_extended (
62
62
const char * title ,
63
- BTCCoin coin ,
63
+ const app_btc_coin_params_t * params ,
64
64
const char * name ,
65
65
const BTCScriptConfig_Multisig * multisig ,
66
66
BTCRegisterScriptConfigRequest_XPubType xpub_type ,
@@ -82,7 +82,7 @@ bool apps_btc_confirm_multisig_extended(
82
82
rust_bip32_to_string (
83
83
keypath , keypath_len , rust_util_cstr_mut (keypath_string , sizeof (keypath_string )));
84
84
85
- if (!apps_btc_confirm_multisig_basic (title , coin , name , multisig )) {
85
+ if (!apps_btc_confirm_multisig_basic (title , params , name , multisig )) {
86
86
return false;
87
87
}
88
88
@@ -92,19 +92,19 @@ bool apps_btc_confirm_multisig_extended(
92
92
if (snprintf_result < 0 || snprintf_result >= (int )sizeof (info )) {
93
93
Abort ("apps_btc_confirm_multisig/0" );
94
94
}
95
- const confirm_params_t params = {
95
+ const confirm_params_t confirm_params = {
96
96
.title = title ,
97
97
.body = info ,
98
98
.accept_is_nextarrow = true,
99
99
};
100
- if (!workflow_confirm_blocking (& params )) {
100
+ if (!workflow_confirm_blocking (& confirm_params )) {
101
101
return false;
102
102
}
103
103
104
104
xpub_type_t output_xpub_type ;
105
105
switch (xpub_type ) {
106
106
case BTCRegisterScriptConfigRequest_XPubType_AUTO_ELECTRUM :
107
- switch (coin ) {
107
+ switch (params -> coin ) {
108
108
case BTCCoin_BTC :
109
109
case BTCCoin_LTC :
110
110
switch (multisig -> script_type ) {
@@ -136,7 +136,7 @@ bool apps_btc_confirm_multisig_extended(
136
136
}
137
137
break ;
138
138
case BTCRegisterScriptConfigRequest_XPubType_AUTO_XPUB_TPUB :
139
- switch (coin ) {
139
+ switch (params -> coin ) {
140
140
case BTCCoin_BTC :
141
141
case BTCCoin_LTC :
142
142
output_xpub_type = XPUB ;
0 commit comments