@@ -423,7 +423,6 @@ async function _parseDeeplink(
423
423
}
424
424
425
425
if ( request . payload . method === Actions . INJECTED_CALL ) {
426
- console . log ( { req : request . payload . params } )
427
426
let authorizedUse = false ;
428
427
if ( [ "BTS" , "BTS_TEST" ] . includes ( chain ) ) {
429
428
let tr ;
@@ -448,13 +447,12 @@ async function _parseDeeplink(
448
447
const actions = JSON . parse ( request . payload . params [ 1 ] ) . actions ;
449
448
450
449
if ( actions ) {
451
- for (
452
- let i = 0 ;
453
- i < actions . length ;
454
- i ++
455
- ) {
450
+ for ( let i = 0 ; i < actions . length ; i ++ ) {
456
451
let operation = actions [ i ] ;
457
- if ( settingsRows && settingsRows . includes ( operation . name ) ) {
452
+ if (
453
+ settingsRows &&
454
+ settingsRows . includes ( operation . name )
455
+ ) {
458
456
authorizedUse = true ;
459
457
break ;
460
458
}
@@ -939,7 +937,7 @@ const createWindow = async () => {
939
937
}
940
938
}
941
939
} else if ( [ "EOS" , "BEOS" , "TLOS" ] . includes ( chain ) ) {
942
- const ops = parsedData . operations [ 0 ] . actions ;
940
+ const ops = parsedData . actions ;
943
941
for ( let i = 0 ; i < ops . length ; i ++ ) {
944
942
let operation = ops [ i ] ;
945
943
if (
@@ -959,7 +957,7 @@ const createWindow = async () => {
959
957
? await blockchain . handleQR (
960
958
JSON . stringify ( parsedData . operations [ 0 ] )
961
959
)
962
- : parsedData . operations [ 0 ] . actions ;
960
+ : parsedData ;
963
961
} catch ( error ) {
964
962
console . log ( { error, location : "background" } ) ;
965
963
}
@@ -975,7 +973,7 @@ const createWindow = async () => {
975
973
browser : qrChoice ,
976
974
params : [ "BTS" , "BTS_TEST" ] . includes ( chain )
977
975
? qrTX . toObject ( )
978
- : qrTX ,
976
+ : [ "signAndBroadcast" , qrTX , [ ] ] ,
979
977
chain : chain ,
980
978
} ,
981
979
} ;
0 commit comments