File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export interface Payment {
29
29
scriptLeaf ?: TaprootLeaf ;
30
30
witness ?: Buffer [ ] ;
31
31
}
32
- export declare type PaymentCreator = ( a : Payment , opts ?: PaymentOpts , eccLib ?: TinySecp256k1Interface ) => Payment ;
32
+ export declare type PaymentCreator = ( a : Payment , opts ?: PaymentOpts ) => Payment ;
33
33
export declare type PaymentFunction = ( ) => Payment ;
34
34
export interface PaymentOpts {
35
35
validate ?: boolean ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import { TinySecp256k1Interface } from '../src/types';
24
24
const options = Object . assign ( { eccLib } , f . options || { } ) ;
25
25
it ( f . description + ' as expected' , ( ) => {
26
26
const args = u . preform ( f . arguments ) ;
27
- const actual = fn ( args , options , eccLib ) ;
27
+ const actual = fn ( args , options ) ;
28
28
29
29
u . equate ( actual , f . expected , f . arguments ) ;
30
30
} ) ;
@@ -36,7 +36,6 @@ import { TinySecp256k1Interface } from '../src/types';
36
36
Object . assign ( { } , options , {
37
37
validate : false ,
38
38
} ) ,
39
- eccLib ,
40
39
) ;
41
40
42
41
u . equate ( actual , f . expected , f . arguments ) ;
@@ -53,7 +52,7 @@ import { TinySecp256k1Interface } from '../src/types';
53
52
const args = u . preform ( f . arguments ) ;
54
53
55
54
assert . throws ( ( ) => {
56
- fn ( args , options , eccLib ) ;
55
+ fn ( args , options ) ;
57
56
} , new RegExp ( f . exception ) ) ;
58
57
} ,
59
58
) ;
Original file line number Diff line number Diff line change @@ -30,11 +30,7 @@ export interface Payment {
30
30
witness ?: Buffer [ ] ;
31
31
}
32
32
33
- export type PaymentCreator = (
34
- a : Payment ,
35
- opts ?: PaymentOpts ,
36
- eccLib ?: TinySecp256k1Interface ,
37
- ) => Payment ;
33
+ export type PaymentCreator = ( a : Payment , opts ?: PaymentOpts ) => Payment ;
38
34
39
35
export type PaymentFunction = ( ) => Payment ;
40
36
You can’t perform that action at this time.
0 commit comments