@@ -2,6 +2,7 @@ import { SignFinalOptions } from '@bitgo/abstract-eth';
22import { AbstractUtxoCoin } from '@bitgo/abstract-utxo' ;
33import { HalfSignedUtxoTransaction , MethodNotImplementedError , TransactionRecipient } from 'bitgo' ;
44import { EnclavedApiSpecRouteRequest } from '../../../enclavedBitgoExpress/routers/enclavedApiSpec' ;
5+ import { EnvironmentName } from '../../../initConfig' ;
56import logger from '../../../logger' ;
67import {
78 isEthLikeCoin ,
@@ -65,7 +66,7 @@ export async function recoveryMultisigTransaction(
6566 maxPriorityFeePerGas,
6667 } ,
6768 replayProtectionOptions : getReplayProtectionOptions (
68- bitgo . env ,
69+ bitgo . env as EnvironmentName ,
6970 unsignedSweepPrebuildTx . replayProtectionOptions ,
7071 ) ,
7172 txPrebuild : {
@@ -77,15 +78,15 @@ export async function recoveryMultisigTransaction(
7778 maxPriorityFeePerGas,
7879 } ,
7980 replayProtectionOptions : getReplayProtectionOptions (
80- bitgo . env ,
81+ bitgo . env as EnvironmentName ,
8182 unsignedSweepPrebuildTx . replayProtectionOptions ,
8283 ) ,
8384 } ,
8485 walletContractAddress,
8586 } ) ;
8687
8788 const halfSignedTx = addEthLikeRecoveryExtras ( {
88- env : bitgo . env ,
89+ env : bitgo . env as EnvironmentName ,
8990 signedTx : halfSignedTxBase as SignedEthLikeRecoveryTx ,
9091 transaction : unsignedSweepPrebuildTx ,
9192 isLastSignature : false ,
@@ -115,7 +116,7 @@ export async function recoveryMultisigTransaction(
115116 maxPriorityFeePerGas,
116117 } ,
117118 replayProtectionOptions : getReplayProtectionOptions (
118- bitgo . env ,
119+ bitgo . env as EnvironmentName ,
119120 halfSignedTx ?. replayProtectionOptions ,
120121 ) ,
121122 } as unknown as SignFinalOptions ,
0 commit comments