@@ -12,10 +12,10 @@ import {
12
12
import checkParameter from "./checkParameter"
13
13
import getEvents from "./getEvents"
14
14
import SemaphoreABI from "./semaphoreABI.json"
15
- import { EthersOptions , GroupResponse , Network } from "./types"
15
+ import { EthersOptions , GroupResponse , EthersNetwork } from "./types"
16
16
17
17
export default class SemaphoreEthers {
18
- private _network : Network | string
18
+ private _network : EthersNetwork | string
19
19
private _options : EthersOptions
20
20
private _contract : Contract
21
21
@@ -24,7 +24,7 @@ export default class SemaphoreEthers {
24
24
* @param networkOrEthereumURL Ethereum network or custom URL.
25
25
* @param options Ethers options.
26
26
*/
27
- constructor ( networkOrEthereumURL : Network | string = "sepolia" , options : EthersOptions = { } ) {
27
+ constructor ( networkOrEthereumURL : EthersNetwork | string = "sepolia" , options : EthersOptions = { } ) {
28
28
checkParameter ( networkOrEthereumURL , "networkOrSubgraphURL" , "string" )
29
29
30
30
if ( options . provider ) {
@@ -114,7 +114,7 @@ export default class SemaphoreEthers {
114
114
* Returns the Ethereum network or custom URL.
115
115
* @returns Ethereum network or custom URL.
116
116
*/
117
- get network ( ) : Network | string {
117
+ get network ( ) : EthersNetwork | string {
118
118
return this . _network
119
119
}
120
120
0 commit comments