@@ -20,6 +20,7 @@ export default class CardanoSignMessage extends BaseMethod<CardanoSignMessagePar
2020 { name : 'message' , type : 'string' , required : true } ,
2121 { name : 'derivationType' , type : 'number' } ,
2222 { name : 'networkId' , type : 'number' , required : true } ,
23+ { name : 'addressType' , type : 'number' } ,
2324 ] ) ;
2425
2526 const addressN = validatePath ( payload . path , 3 ) ;
@@ -32,6 +33,7 @@ export default class CardanoSignMessage extends BaseMethod<CardanoSignMessagePar
3233 ? payload . derivationType
3334 : PROTO . CardanoDerivationType . ICARUS ,
3435 network_id : payload . networkId ,
36+ address_type : payload . addressType ,
3537 } ;
3638 }
3739
@@ -43,7 +45,20 @@ export default class CardanoSignMessage extends BaseMethod<CardanoSignMessagePar
4345 } ;
4446 }
4547
48+ getAddressTypeVersionRange ( ) {
49+ return {
50+ pro : {
51+ min : '4.9.3' ,
52+ } ,
53+ } ;
54+ }
55+
4656 async run ( ) {
57+ this . checkFeatureVersionLimit (
58+ ( ) => this . params . address_type !== null && this . params . address_type !== undefined ,
59+ ( ) => this . getAddressTypeVersionRange ( )
60+ ) ;
61+
4762 const res = await this . device . commands . typedCall (
4863 'CardanoSignMessage' ,
4964 'CardanoMessageSignature' ,
0 commit comments