@@ -46,9 +46,9 @@ describe('WalletTxSignTSS codec tests', function () {
4646 apiVersion : 'lite' as const ,
4747 } ;
4848
49- // Create mock wallet with signTransaction method
49+ // Create mock wallet with ensureCleanSigSharesAndSignTransaction method
5050 const mockWallet = {
51- signTransaction : sinon . stub ( ) . resolves ( mockFullySignedResponse ) ,
51+ ensureCleanSigSharesAndSignTransaction : sinon . stub ( ) . resolves ( mockFullySignedResponse ) ,
5252 } ;
5353
5454 // Stub the wallets().get() chain
@@ -85,7 +85,7 @@ describe('WalletTxSignTSS codec tests', function () {
8585 assert . strictEqual ( coinStub . calledOnceWith ( coin ) , true ) ;
8686 assert . strictEqual ( mockCoin . wallets . calledOnce , true ) ;
8787 assert . strictEqual ( walletsGetStub . calledOnceWith ( { id : walletId } ) , true ) ;
88- assert . strictEqual ( mockWallet . signTransaction . calledOnce , true ) ;
88+ assert . strictEqual ( mockWallet . ensureCleanSigSharesAndSignTransaction . calledOnce , true ) ;
8989 } ) ;
9090
9191 it ( 'should successfully sign a half-signed TSS wallet transaction' , async function ( ) {
@@ -106,9 +106,9 @@ describe('WalletTxSignTSS codec tests', function () {
106106 } ,
107107 } ;
108108
109- // Create mock wallet with signTransaction method
109+ // Create mock wallet with ensureCleanSigSharesAndSignTransaction method
110110 const mockWallet = {
111- signTransaction : sinon . stub ( ) . resolves ( mockHalfSignedResponse ) ,
111+ ensureCleanSigSharesAndSignTransaction : sinon . stub ( ) . resolves ( mockHalfSignedResponse ) ,
112112 } ;
113113
114114 // Stub the wallets().get() chain
@@ -146,7 +146,7 @@ describe('WalletTxSignTSS codec tests', function () {
146146 assert . strictEqual ( coinStub . calledOnceWith ( coin ) , true ) ;
147147 assert . strictEqual ( mockCoin . wallets . calledOnce , true ) ;
148148 assert . strictEqual ( walletsGetStub . calledOnceWith ( { id : walletId } ) , true ) ;
149- assert . strictEqual ( mockWallet . signTransaction . calledOnce , true ) ;
149+ assert . strictEqual ( mockWallet . ensureCleanSigSharesAndSignTransaction . calledOnce , true ) ;
150150 } ) ;
151151
152152 it ( 'should successfully sign a half-signed UTXO transaction' , async function ( ) {
@@ -165,9 +165,9 @@ describe('WalletTxSignTSS codec tests', function () {
165165 '0100000001c7dad3d9607a23c45a6c1c5ad7bce02acff71a0f21eb4a72a59d0c0e19402d0f00000000484730440220abc123def456...' ,
166166 } ;
167167
168- // Create mock wallet with signTransaction method
168+ // Create mock wallet with ensureCleanSigSharesAndSignTransaction method
169169 const mockWallet = {
170- signTransaction : sinon . stub ( ) . resolves ( mockHalfSignedUtxoResponse ) ,
170+ ensureCleanSigSharesAndSignTransaction : sinon . stub ( ) . resolves ( mockHalfSignedUtxoResponse ) ,
171171 } ;
172172
173173 // Stub the wallets().get() chain
@@ -204,7 +204,7 @@ describe('WalletTxSignTSS codec tests', function () {
204204 assert . strictEqual ( coinStub . calledOnceWith ( coin ) , true ) ;
205205 assert . strictEqual ( mockCoin . wallets . calledOnce , true ) ;
206206 assert . strictEqual ( walletsGetStub . calledOnceWith ( { id : walletId } ) , true ) ;
207- assert . strictEqual ( mockWallet . signTransaction . calledOnce , true ) ;
207+ assert . strictEqual ( mockWallet . ensureCleanSigSharesAndSignTransaction . calledOnce , true ) ;
208208 } ) ;
209209
210210 it ( 'should successfully return a TSS transaction request ID' , async function ( ) {
@@ -222,9 +222,9 @@ describe('WalletTxSignTSS codec tests', function () {
222222 txRequestId : '5a1341e7c8421dc90710673b3166bbd5' ,
223223 } ;
224224
225- // Create mock wallet with signTransaction method
225+ // Create mock wallet with ensureCleanSigSharesAndSignTransaction method
226226 const mockWallet = {
227- signTransaction : sinon . stub ( ) . resolves ( mockTxRequestResponse ) ,
227+ ensureCleanSigSharesAndSignTransaction : sinon . stub ( ) . resolves ( mockTxRequestResponse ) ,
228228 } ;
229229
230230 // Stub the wallets().get() chain
@@ -261,7 +261,7 @@ describe('WalletTxSignTSS codec tests', function () {
261261 assert . strictEqual ( coinStub . calledOnceWith ( coin ) , true ) ;
262262 assert . strictEqual ( mockCoin . wallets . calledOnce , true ) ;
263263 assert . strictEqual ( walletsGetStub . calledOnceWith ( { id : walletId } ) , true ) ;
264- assert . strictEqual ( mockWallet . signTransaction . calledOnce , true ) ;
264+ assert . strictEqual ( mockWallet . ensureCleanSigSharesAndSignTransaction . calledOnce , true ) ;
265265 } ) ;
266266
267267 it ( 'should successfully return a full TSS transaction request (TxRequestResponse)' , async function ( ) {
@@ -322,9 +322,9 @@ describe('WalletTxSignTSS codec tests', function () {
322322 latest : true ,
323323 } ;
324324
325- // Create mock wallet with signTransaction method
325+ // Create mock wallet with ensureCleanSigSharesAndSignTransaction method
326326 const mockWallet = {
327- signTransaction : sinon . stub ( ) . resolves ( mockTxRequestFullResponse ) ,
327+ ensureCleanSigSharesAndSignTransaction : sinon . stub ( ) . resolves ( mockTxRequestFullResponse ) ,
328328 } ;
329329
330330 // Stub the wallets().get() chain
@@ -385,7 +385,7 @@ describe('WalletTxSignTSS codec tests', function () {
385385 assert . strictEqual ( coinStub . calledOnceWith ( coin ) , true ) ;
386386 assert . strictEqual ( mockCoin . wallets . calledOnce , true ) ;
387387 assert . strictEqual ( walletsGetStub . calledOnceWith ( { id : walletId } ) , true ) ;
388- assert . strictEqual ( mockWallet . signTransaction . calledOnce , true ) ;
388+ assert . strictEqual ( mockWallet . ensureCleanSigSharesAndSignTransaction . calledOnce , true ) ;
389389 } ) ;
390390
391391 // ==========================================
0 commit comments