66 type GetAppConfigDAError ,
77 type GetAppConfigDAIntermediateValue ,
88 type GetAppConfigDAOutput ,
9- type SignMessageDAError ,
10- type SignMessageDAIntermediateValue ,
11- type SignMessageDAOutput ,
129 type SignTransactionDAError ,
1310 type SignTransactionDAIntermediateValue ,
1411 type SignTransactionDAOutput ,
@@ -52,7 +49,11 @@ export const SignerAleoView: React.FC<{ sessionId: string }> = ({
5249 {
5350 title : "Get Address" ,
5451 description : "Get an address from the device" ,
55- executeDeviceAction : ( { derivationPath, checkOnDevice, skipOpenApp } ) => {
52+ executeDeviceAction : ( {
53+ derivationPath,
54+ checkOnDevice,
55+ skipOpenApp,
56+ } ) => {
5657 if ( ! signer ) {
5758 throw new Error ( "Signer not initialized" ) ;
5859 }
@@ -90,12 +91,12 @@ export const SignerAleoView: React.FC<{ sessionId: string }> = ({
9091 transaction
9192 . slice ( 2 )
9293 . match ( / .{ 1 , 2 } / g)
93- ?. map ( ( byte ) => parseInt ( byte , 16 ) ) ?? [ ]
94+ ?. map ( ( byte ) => parseInt ( byte , 16 ) ) ?? [ ] ,
9495 )
9596 : new Uint8Array (
9697 transaction
9798 . match ( / .{ 1 , 2 } / g)
98- ?. map ( ( byte ) => parseInt ( byte , 16 ) ) ?? [ ]
99+ ?. map ( ( byte ) => parseInt ( byte , 16 ) ) ?? [ ] ,
99100 ) ;
100101 return signer . signTransaction ( derivationPath , txBytes , {
101102 skipOpenApp,
@@ -117,29 +118,6 @@ export const SignerAleoView: React.FC<{ sessionId: string }> = ({
117118 SignTransactionDAError ,
118119 SignTransactionDAIntermediateValue
119120 > ,
120- {
121- title : "Sign Message" ,
122- description : "Sign a message with the device" ,
123- executeDeviceAction : ( { derivationPath, message } ) => {
124- if ( ! signer ) {
125- throw new Error ( "Signer not initialized" ) ;
126- }
127- return signer . signMessage ( derivationPath , message ) ;
128- } ,
129- initialValues : {
130- derivationPath : "44'/0'/0'/0/0" ,
131- message : "Hello World" ,
132- } ,
133- deviceModelId,
134- } satisfies DeviceActionProps <
135- SignMessageDAOutput ,
136- {
137- derivationPath : string ;
138- message : string ;
139- } ,
140- SignMessageDAError ,
141- SignMessageDAIntermediateValue
142- > ,
143121 ] ,
144122 [ deviceModelId , signer ] ,
145123 ) ;
0 commit comments