Skip to content

Commit

Permalink
Merge pull request #18 from 0xPolygon/gas-estimate
Browse files Browse the repository at this point in the history
upd: merkle proof url
  • Loading branch information
nitinmittal23 authored Jul 5, 2024
2 parents f77a548 + cee7460 commit cefc3ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/taskdef/staging-taskdef.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env_vars:
- name: TRANSACTIONS_URL
value: https://api-gateway.polygon.technology/api/v3/transactions/testnet
- name: PROOF_URL
value: https://api-gateway.polygon.technology/api/v3/merkle-proof/testnet
value: https://api-gateway.polygon.technology/api/v3/proof/testnet/merkle-proof
- name: CLAIM_COMPRESSOR_CONTRACT
value: "0xeADFA914e7aBf33179E7820Bd13043962a7B5F9d"
- name: BRIDGE_CONTRACT
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ let autoClaimService: AutoClaimService;
async function run() {
while (true) {
await autoClaimService.claimTransactions();
await new Promise(r => setTimeout(r, 120000));
await new Promise(r => setTimeout(r, 300000));
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/services/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ export default class TransactionService {
error: error.message,
data: {
sourceNetwork,
depositCount
depositCount,
url: `${this.proofUrl}?networkId=${sourceNetwork}&depositCount=${depositCount}`
}
});
}
Expand Down

0 comments on commit cefc3ca

Please sign in to comment.