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 {
110110 enableMetrics,
111111 metricsPort,
112112 } = argv ;
113- console . log ( "***** priceServiceEndpoint *****" , priceServiceEndpoint ) ;
114113
115114 const logger = pino ( {
116115 level : logLevel ,
Original file line number Diff line number Diff line change @@ -235,6 +235,12 @@ export class EvmPricePusher implements IPricePusher {
235235
236236 const priceIdsWith0x = priceIds . map ( ( priceId ) => addLeading0x ( priceId ) ) ;
237237
238+ // Update lastAttempt
239+ this . lastPushAttempt = {
240+ nonce : txNonce ,
241+ gasPrice : gasPrice ,
242+ } ;
243+
238244 try {
239245 const { request } =
240246 await this . pythContract . simulate . updatePriceFeedsIfNecessary (
@@ -383,18 +389,13 @@ export class EvmPricePusher implements IPricePusher {
383389 ) ;
384390 throw err ;
385391 }
386-
387- // Update lastAttempt
388- this . lastPushAttempt = {
389- nonce : txNonce ,
390- gasPrice : gasPrice ,
391- } ;
392392 }
393393
394394 private async waitForTransactionReceipt ( hash : `0x${string } `) : Promise < void > {
395395 try {
396396 const receipt = await this . client . waitForTransactionReceipt ( {
397397 hash : hash ,
398+ timeout : 10000 ,
398399 } ) ;
399400
400401 switch ( receipt . status ) {
You can’t perform that action at this time.
0 commit comments