File tree Expand file tree Collapse file tree
packages/apps/job-launcher/server/src/modules Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1016,16 +1016,12 @@ export class JobService {
10161016
10171017 const signer = this . web3Service . getSigner ( jobEntity . chainId ) ;
10181018
1019- const tokenAddress =
1020- jobEntity . token === 'HMT'
1021- ? NETWORKS [ jobEntity . chainId as ChainId ] ! . hmtAddress
1022- : ( TOKEN_ADDRESSES [ jobEntity . chainId as ChainId ] ?? { } ) [
1023- jobEntity . token as EscrowFundToken
1024- ] ! ;
10251019 const escrowClient = await EscrowClient . build ( signer ) ;
10261020
10271021 const escrowAddress = await escrowClient . createEscrow (
1028- tokenAddress ,
1022+ ( TOKEN_ADDRESSES [ jobEntity . chainId as ChainId ] ?? { } ) [
1023+ jobEntity . token as EscrowFundToken
1024+ ] ! ,
10291025 getTrustedHandlers ( ) ,
10301026 jobEntity . userId . toString ( ) ,
10311027 {
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ import { ServerConfigService } from '../../common/config/server-config.service';
2727import { Web3ConfigService } from '../../common/config/web3-config.service' ;
2828import { HEADER_SIGNATURE_KEY } from '../../common/constants' ;
2929import { TOKEN_ADDRESSES } from '../../common/constants/tokens' ;
30- import { Web3Env } from '../../common/enums/web3' ;
3130import { ControlledError } from '../../common/errors/controlled' ;
3231import { WhitelistAuthGuard } from '../../common/guards/whitelist.auth' ;
3332import { PageDto } from '../../common/pagination/pagination.dto' ;
You can’t perform that action at this time.
0 commit comments