File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -56,10 +56,12 @@ export const processTransaction = async (): Promise<string[]> => {
56
56
pgtx ,
57
57
) ;
58
58
59
- let [ blockchainNonce , gasData ] = await Promise . all ( [
60
- sdk . wallet . getNonce ( "pending" ) ,
61
- getDefaultGasOverrides ( sdk . getProvider ( ) ) ,
62
- ] ) ;
59
+ let [ blockchainNonce , gasData , currentBlockNumber ] =
60
+ await Promise . all ( [
61
+ sdk . wallet . getNonce ( "pending" ) ,
62
+ getDefaultGasOverrides ( sdk . getProvider ( ) ) ,
63
+ sdk . getProvider ( ) . getBlockNumber ( ) ,
64
+ ] ) ;
63
65
64
66
// TODO: IMPORTANT: Proper nonce management logic! Add comments!
65
67
let currentNonce = BigNumber . from ( walletNonce ?. nonce ?? 0 ) ;
@@ -120,6 +122,9 @@ export const processTransaction = async (): Promise<string[]> => {
120
122
queueId : tx . queueId ! ,
121
123
status : TransactionStatusEnum . Submitted ,
122
124
res : txRes ,
125
+ txData : {
126
+ sentAtBlockNumber : currentBlockNumber ,
127
+ } ,
123
128
} ) ;
124
129
logger . worker . info (
125
130
`Transaction submitted for ${ tx . queueId ! } with Nonce ${ txSubmittedNonce } , Tx Hash: ${
Original file line number Diff line number Diff line change @@ -147,6 +147,7 @@ export const retryTransactions = async () => {
147
147
res : txRes ,
148
148
txData : {
149
149
retryCount : txReceiptData . txData . retryCount + 1 ,
150
+ sentAtBlockNumber : currentBlockNumber ,
150
151
} ,
151
152
} ) ;
152
153
logger . worker . info (
You can’t perform that action at this time.
0 commit comments