-
-
Notifications
You must be signed in to change notification settings - Fork 251
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(suite): display contract address error #14220
base: develop
Are you sure you want to change the base?
Conversation
bf6df91
to
f61780b
Compare
f61780b
to
f5cc569
Compare
Nit - copy adjustment: "“This is a contract address. Are you sure you want to proceed with sending to this address?”" wdyt @Hermez-cz ? |
I discussed it with Ben and he also proposed the "This". Also I will add a Learn More button with a link to this article https://trezor.io/support/a/where-is-my-ethereum |
f5cc569
to
386bbcd
Compare
257d292
to
a65ee1d
Compare
@MiroslavProchazka I updated the screenshot |
a65ee1d
to
4e110f6
Compare
Please consider smart contract wallets (Account Abstraction). e.g. https://safe.global/wallet |
return { | ||
onClick: () => { | ||
contractAddressWarningDismissed = true; | ||
trigger(inputName); |
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.
what does this do?
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.
trigger starts re-validation. same as setValue, but without changing the value.
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.
it's needed to remove the contract warning
d93700f
to
e64fd5b
Compare
2066b41
to
cbf0471
Compare
4aa4a18
to
fc826a0
Compare
I updated the screenshot with a new version of the shorter and less implicit version after discussing it with Ben and reminded him about the KB article update @tomasklim |
ecce9ea
to
d977b75
Compare
Btw I think "I understand the risk" shouldn't be a button. Because button evokes you might be redirected somewhere else (different page, modal or something else). @Hermez-cz WDYT? |
6a17127
to
93b8999
Compare
Hi, the design linked in #7244 is already quite old, but the button would make sense in there as part of the warning banner to dismiss it. In the current implementation of an error message, the button really feels odd. Checkbox makes better logical sense, but might make the interface fuzzy and the flow not so clear. Will have to check with the designer. |
93b8999
to
79d506c
Compare
@enjojoy 🚨🚨📢 does it work for Polygon and BNB? |
79d506c
to
3c6472e
Compare
It works on Polygon but not on BNB, because BNB smart contracts don't provide any contract info for some reason, it's the only way I can know if it's a smart contract address |
❌ Blocked - no contractInfo on BNB |
|
Description
If the user enters a contract address, he can proceed with sending only after pressing the "I understand the risk" button
Related Issue
Resolve #7244
Screenshots: