diff --git a/js/src/Blockchain/Blockchain.Abstraction/Infrastructure/TreasuryClient/treasuryClient.ts b/js/src/Blockchain/Blockchain.Abstraction/Infrastructure/TreasuryClient/treasuryClient.ts index 93b14dbd..86c59c09 100644 --- a/js/src/Blockchain/Blockchain.Abstraction/Infrastructure/TreasuryClient/treasuryClient.ts +++ b/js/src/Blockchain/Blockchain.Abstraction/Infrastructure/TreasuryClient/treasuryClient.ts @@ -14,7 +14,8 @@ export class TreasuryClient { constructor(signerAgentUrl: string) { this.apiClient = axios.create({ baseURL: `${signerAgentUrl}/api/treasury/`, - timeout: 600000 + timeout: process.env.TrainSolver__TreasuryTimeout ? + parseInt(process.env.TrainSolver__TreasuryTimeout) : 30000 }); } diff --git a/js/src/Blockchain/Blockchain.Aztec/Activities/Helper/AztecTransactionBuilder.ts b/js/src/Blockchain/Blockchain.Aztec/Activities/Helper/AztecTransactionBuilder.ts index 1169148a..8739739d 100644 --- a/js/src/Blockchain/Blockchain.Aztec/Activities/Helper/AztecTransactionBuilder.ts +++ b/js/src/Blockchain/Blockchain.Aztec/Activities/Helper/AztecTransactionBuilder.ts @@ -215,14 +215,6 @@ export async function createTransferCallData(network: DetailedNetworkDto, args: }; } -interface FunctionInteraction { - interactionAddress: string, - functionName: string, - args: any[], - callerAddress?: string, - authwiths?: FunctionInteraction[], -} - export const hexToUint256HexStrings = (hex: string): string[] => { let h = hex.startsWith('0x') ? hex.slice(2) : hex; if (h.length % 2) h = '0' + h; diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index e1801d92..00000000 --- a/package-lock.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "solver", - "lockfileVersion": 3, - "requires": true, - "packages": {} -}