Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

Phishing address warning #1674

Merged
merged 8 commits into from
Mar 13, 2018
Merged

Conversation

gamalielhere
Copy link
Collaborator

  • Compile list of phishing addresses from @kvhnuke and etherscamdb.info
  • Rewrite html render with string literal (tested in safari too)
  • Compare user input to any phishing addresses and display warning text

@kvhnuke kvhnuke self-requested a review March 13, 2018 22:38
var checkDarkList = function(value) {
for(let i = 0; i < Darklist.length; i++) {
if(value.length > 0 && value === Darklist[i].address) {
scope.phishing.msg = Darklist[i].comment !== '' ? `This address has been flagged: ${Darklist[i].comment}` : 'This address has been flagged in our Phishing list. Please make sure you are sending to the right address';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have to add this line to translation files

@@ -74,6 +74,11 @@ globalFuncs.errorMsgs = [
'Bid must be more than the specified minimum' // 39
];

globalFuncs.phishingWarning = [
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you also have to add this to https://github.com/kvhnuke/etherwallet/blob/mercury/app/scripts/controllers/tabsCtrl.js#L261 thats where it gets the translated version and replace it with object's value

@gamalielhere gamalielhere merged commit 049be2a into mercury Mar 13, 2018
@gamalielhere gamalielhere deleted the feature/phishing-address-warning branch March 13, 2018 23:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants