Skip to content

Commit 7de37ae

Browse files
refactor: cast to env name on bitgo env
1 parent f38a933 commit 7de37ae

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

src/api/master/handlers/recoveryWallet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export async function handleRecoveryWalletOnPrem(
146146
coinSpecificParams: undefined,
147147
walletContractAddress,
148148
},
149-
bitgo.env,
149+
bitgo.env as EnvironmentName,
150150
);
151151
}
152152
if (!bitgoPub) {

src/shared/types/index.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,7 @@ export enum AppMode {
88
MASTER_EXPRESS = 'master-express',
99
}
1010

11-
export type EnvironmentName =
12-
| 'prod'
13-
| 'staging'
14-
| 'test'
15-
| 'dev'
16-
| 'local'
17-
| 'localNonSecure'
18-
| 'mock'
19-
| 'adminProd'
20-
| 'adminTest'
21-
| 'adminStaging'
22-
| 'adminDev'
23-
| 'custom'
24-
| 'branch';
11+
export type EnvironmentName = 'prod' | 'test' | 'staging' | 'dev' | 'local';
2512

2613
// Common base configuration shared by both modes
2714
interface BaseConfig {

0 commit comments

Comments
 (0)