-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose Confirmed state to ChainWriter #14138
Expose Confirmed state to ChainWriter #14138
Conversation
eb46d28
to
c665e24
Compare
2532665
to
a29cd59
Compare
a29cd59
to
5d486cf
Compare
Co-authored-by: amit-momin <[email protected]>
|
@@ -654,8 +654,8 @@ func (b *Txm[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE]) GetTransac | |||
} | |||
switch tx.State { | |||
case TxUnconfirmed, TxConfirmedMissingReceipt: | |||
// Return unconfirmed for ConfirmedMissingReceipt since a receipt is required to determine if it is finalized | |||
return commontypes.Unconfirmed, nil | |||
// Return pending for ConfirmedMissingReceipt since a receipt is required to consider it as unconfirmed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: a receipt is required to consider it as confirmed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohh, I think Unconfirmed means different things inside TXM, and in ChainWriter.
Requires Dependencies
smartcontractkit/chainlink-common#709
Resolves Dependencies
https://github.com/smartcontractkit/chainlink-evm-testing/pull/118