-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Add verifiedOnBlockchain property to transaction meta #20890
Add verifiedOnBlockchain property to transaction meta #20890
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
765d855
to
e1e9827
Compare
Both scenarios work as expected.
s_eth.movSending tokens: tst_s.mov |
@@ -963,6 +963,8 @@ export default class TransactionController extends EventEmitter { | |||
if (blockTimestamp) { | |||
txMeta.blockTimestamp = blockTimestamp; | |||
} | |||
// transaction verified on the blockchain |
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.
Minor, but is this comment adding much additional detail?
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #20890 +/- ##
===========================================
+ Coverage 68.26% 68.27% +0.01%
===========================================
Files 1002 1003 +1
Lines 40133 40150 +17
Branches 10742 10745 +3
===========================================
+ Hits 27395 27411 +16
- Misses 12738 12739 +1
☔ View full report in Codecov by Sentry. |
Builds ready [84ddc22]
Page Load Metrics (1651 ± 79 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [9a249b0]
Page Load Metrics (1568 ± 38 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [045aa32]
Page Load Metrics (1650 ± 41 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Explanation
This PR aims to add
verifiedOnBlockchain
property to transaction metadata as part of the ongoing effort to align the extension transaction controller with the controller in the core repo.For context, the core
TransactionController
uses averifiedOnBlockchain
property to indicate whether a transaction has completed the verification process and therefore the status is now fixed and no further checks will be performed.If the transaction receipt indicates the transaction failed, the
verifiedOnBlockchain
is still set totrue
to prevent further processing.Changes
verifiedOnBlockchain
to transaction metadata.PendingTransactionTracker
.Manual Testing Steps
Scenario 1
Scenario 2
Both scenarios should be successfully completed, as usual, with no functional changes.
Pre-merge author checklist
Pre-merge reviewer checklist
If further QA is required (e.g. new feature, complex testing steps, large refactor), add the
Extension QA Board
label.In this case, a QA Engineer approval will be be required.