File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
apps/price_pusher/src/evm Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,6 @@ export default {
110
110
enableMetrics,
111
111
metricsPort,
112
112
} = argv ;
113
- console . log ( "***** priceServiceEndpoint *****" , priceServiceEndpoint ) ;
114
113
115
114
const logger = pino ( {
116
115
level : logLevel ,
Original file line number Diff line number Diff line change @@ -235,6 +235,12 @@ export class EvmPricePusher implements IPricePusher {
235
235
236
236
const priceIdsWith0x = priceIds . map ( ( priceId ) => addLeading0x ( priceId ) ) ;
237
237
238
+ // Update lastAttempt
239
+ this . lastPushAttempt = {
240
+ nonce : txNonce ,
241
+ gasPrice : gasPrice ,
242
+ } ;
243
+
238
244
try {
239
245
const { request } =
240
246
await this . pythContract . simulate . updatePriceFeedsIfNecessary (
@@ -383,18 +389,13 @@ export class EvmPricePusher implements IPricePusher {
383
389
) ;
384
390
throw err ;
385
391
}
386
-
387
- // Update lastAttempt
388
- this . lastPushAttempt = {
389
- nonce : txNonce ,
390
- gasPrice : gasPrice ,
391
- } ;
392
392
}
393
393
394
394
private async waitForTransactionReceipt ( hash : `0x${string } `) : Promise < void > {
395
395
try {
396
396
const receipt = await this . client . waitForTransactionReceipt ( {
397
397
hash : hash ,
398
+ timeout : 10000 ,
398
399
} ) ;
399
400
400
401
switch ( receipt . status ) {
You can’t perform that action at this time.
0 commit comments