File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
src/background/controller Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " unisat-extension" ,
3
- "version" : " 1.1.3 " ,
3
+ "version" : " 1.1.4 " ,
4
4
"private" : true ,
5
5
"homepage" : " https://github.com/unisat-wallet/extension#readme" ,
6
6
"bugs" : {
Original file line number Diff line number Diff line change @@ -393,7 +393,7 @@ export class WalletController extends BaseController {
393
393
const keyring = await keyringService . getKeyringForAccount ( account . pubkey , account . type ) ;
394
394
395
395
const toSignInputs : ToSignInput [ ] = [ ] ;
396
-
396
+ const addressType = preferenceService . getAddressType ( ) ;
397
397
psbt . data . inputs . forEach ( ( v , index ) => {
398
398
let script : any = null ;
399
399
let value = 0 ;
@@ -415,6 +415,9 @@ export class WalletController extends BaseController {
415
415
publicKey : account . pubkey ,
416
416
sighashTypes : v . sighashType ? [ v . sighashType ] : undefined
417
417
} ) ;
418
+ if ( addressType === AddressType . P2TR && ! v . tapInternalKey ) {
419
+ v . tapInternalKey = toXOnly ( Buffer . from ( account . pubkey , 'hex' ) ) ;
420
+ }
418
421
}
419
422
}
420
423
} ) ;
You can’t perform that action at this time.
0 commit comments