-
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
feat(mmi): start implementing mmi ofa feature #24749
Changes from 15 commits
f69cc6c
0dd3ba7
c2fb078
30c2b8b
916ebb6
aeda3db
f5faf08
b136fc5
854b7f3
3182110
5a1ca02
c252f3f
8eda9ba
84521d5
41decc8
7e0604d
cf59707
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -825,6 +825,8 @@ export default class ConfirmTransactionBase extends Component { | |
toAddress, | ||
showCustodianDeepLink, | ||
clearConfirmTransaction, | ||
smartTransactionsOptInStatus, | ||
currentChainSupportsSmartTransactions, | ||
} = this.props; | ||
const { noteText } = this.state; | ||
|
||
|
@@ -836,6 +838,13 @@ export default class ConfirmTransactionBase extends Component { | |
txData.metadata.note = noteText; | ||
} | ||
|
||
if ( | ||
smartTransactionsOptInStatus && | ||
currentChainSupportsSmartTransactions | ||
) { | ||
txData.origin += '#smartTransaction'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are we mutating an existing property in this instance as opposed to using a new property for example? Is the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @matthewwalsh0, we are using the origin because we don’t want to add any new properties for now, as it would impact our Ethereum custodian API. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As long as you're sure it won't break any of the UI, fair enough given this branch is specific to MMI. |
||
} | ||
|
||
txData.metadata.custodianPublishesTransaction = | ||
custodianPublishesTransaction; | ||
txData.metadata.rpcUrl = rpcUrl; | ||
|
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.
If we're trying to detect if this is a smart transaction, should we be using the
getSmartTransactionsEnabled
selector as it also checks the feature flag so if the service is live?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.
Thanks for the quick response @matthewwalsh0 ! I appreciate it; I didn't know that it existed. I'll do the changes