@@ -193,7 +193,6 @@ describe('signTxRequest:', function () {
193193 txRequest,
194194 prv : userPrvBase64 ,
195195 reqId,
196- txParams : { recipients : [ { address : '0xrecipient' , amount : '1000' } ] } ,
197196 } ) ;
198197 nockPromises [ 0 ] . isDone ( ) . should . be . true ( ) ;
199198 nockPromises [ 1 ] . isDone ( ) . should . be . true ( ) ;
@@ -216,7 +215,6 @@ describe('signTxRequest:', function () {
216215 prv : backupPrvBase64 ,
217216 mpcv2PartyId : 1 ,
218217 reqId,
219- txParams : { recipients : [ { address : '0xrecipient' , amount : '1000' } ] } ,
220218 } ) ;
221219 nockPromises [ 0 ] . isDone ( ) . should . be . true ( ) ;
222220 nockPromises [ 1 ] . isDone ( ) . should . be . true ( ) ;
@@ -238,7 +236,6 @@ describe('signTxRequest:', function () {
238236 txRequest,
239237 prv : userPrvBase64 ,
240238 reqId,
241- txParams : { recipients : [ { address : '0xrecipient' , amount : '1000' } ] } ,
242239 } ) ;
243240 nockPromises [ 0 ] . isDone ( ) . should . be . true ( ) ;
244241 nockPromises [ 1 ] . isDone ( ) . should . be . true ( ) ;
@@ -260,7 +257,6 @@ describe('signTxRequest:', function () {
260257 txRequest,
261258 prv : userPrvBase64 ,
262259 reqId,
263- txParams : { recipients : [ { address : '0xrecipient' , amount : '1000' } ] } ,
264260 } ) ;
265261 nockPromises [ 0 ] . isDone ( ) . should . be . true ( ) ;
266262 nockPromises [ 1 ] . isDone ( ) . should . be . true ( ) ;
@@ -281,41 +277,11 @@ describe('signTxRequest:', function () {
281277 txRequest,
282278 prv : userPrvBase64 ,
283279 reqId,
284- txParams : { recipients : [ { address : '0xrecipient' , amount : '1000' } ] } ,
285280 } )
286281 . should . be . rejectedWith ( 'Too many requests, slow down!' ) ;
287282 nockPromises [ 0 ] . isDone ( ) . should . be . true ( ) ;
288283 nockPromises [ 1 ] . isDone ( ) . should . be . false ( ) ;
289284 } ) ;
290-
291- it ( 'rejects signTxRequest when txParams is missing' , async function ( ) {
292- const userShare = fs . readFileSync ( shareFiles [ vector . party1 ] ) ;
293- const userPrvBase64 = Buffer . from ( userShare ) . toString ( 'base64' ) ;
294- await tssUtils
295- . signTxRequest ( {
296- txRequest,
297- prv : userPrvBase64 ,
298- reqId,
299- } )
300- . should . be . rejectedWith (
301- 'Recipient details are required to verify this transaction before signing. Pass txParams with at least one recipient.'
302- ) ;
303- } ) ;
304-
305- it ( 'rejects signTxRequest when txParams has empty recipients' , async function ( ) {
306- const userShare = fs . readFileSync ( shareFiles [ vector . party1 ] ) ;
307- const userPrvBase64 = Buffer . from ( userShare ) . toString ( 'base64' ) ;
308- await tssUtils
309- . signTxRequest ( {
310- txRequest,
311- prv : userPrvBase64 ,
312- reqId,
313- txParams : { recipients : [ ] } ,
314- } )
315- . should . be . rejectedWith (
316- 'Recipient details are required to verify this transaction before signing. Pass txParams with at least one recipient.'
317- ) ;
318- } ) ;
319285} ) ;
320286
321287export function getBitGoPartyGpgKeyPrv ( key : openpgp . SerializedKeyPair < string > ) : DklsTypes . PartyGpgKey {
0 commit comments