@@ -69,7 +69,7 @@ describe('PersonalWallet/cip30WalletApi', () => {
69
69
70
70
it ( 'can signData with bech32 base address' , async ( ) => {
71
71
const [ { address, index } ] = await firstValueFrom ( wallet . addresses$ ) ;
72
- const paymentKeyHex = await bip32Account . derivePublicKey ( { index, role : KeyRole . External } ) ;
72
+ const paymentKeyHex = bip32Account . derivePublicKey ( { index, role : KeyRole . External } ) ;
73
73
74
74
const signature = await walletApi . signData ( { sender : '' } as unknown as SenderContext , address , HexBlob ( 'abc123' ) ) ;
75
75
@@ -79,7 +79,7 @@ describe('PersonalWallet/cip30WalletApi', () => {
79
79
it ( 'can signData with hex-encoded base address' , async ( ) => {
80
80
const [ { address, index } ] = await firstValueFrom ( wallet . addresses$ ) ;
81
81
const addressHex = Cardano . Address . fromBech32 ( address ) . toBytes ( ) ;
82
- const paymentKeyHex = await bip32Account . derivePublicKey ( { index, role : KeyRole . External } ) ;
82
+ const paymentKeyHex = bip32Account . derivePublicKey ( { index, role : KeyRole . External } ) ;
83
83
84
84
const signature = await walletApi . signData (
85
85
{ sender : '' } as unknown as SenderContext ,
@@ -92,7 +92,7 @@ describe('PersonalWallet/cip30WalletApi', () => {
92
92
93
93
it ( 'can signData with bech32 base address' , async ( ) => {
94
94
const [ { rewardAccount, index } ] = await firstValueFrom ( wallet . addresses$ ) ;
95
- const stakeKeyHex = await bip32Account . derivePublicKey ( { index, role : KeyRole . Stake } ) ;
95
+ const stakeKeyHex = bip32Account . derivePublicKey ( { index, role : KeyRole . Stake } ) ;
96
96
97
97
const signature = await walletApi . signData (
98
98
{ sender : '' } as unknown as SenderContext ,
@@ -106,7 +106,7 @@ describe('PersonalWallet/cip30WalletApi', () => {
106
106
it ( 'can signData with hex-encoded reward account' , async ( ) => {
107
107
const [ { rewardAccount, index } ] = await firstValueFrom ( wallet . addresses$ ) ;
108
108
const rewardAccountHex = Cardano . Address . fromBech32 ( rewardAccount ) . toBytes ( ) ;
109
- const stakeKeyHex = await bip32Account . derivePublicKey ( { index, role : KeyRole . Stake } ) ;
109
+ const stakeKeyHex = bip32Account . derivePublicKey ( { index, role : KeyRole . Stake } ) ;
110
110
111
111
const signature = await walletApi . signData (
112
112
{ sender : '' } as unknown as SenderContext ,
0 commit comments