Skip to content

Instantly share code, notes, and snippets.

@nunofernandes-plight
Forked from frozeman/addressfixes.js
Created April 2, 2016 15:30
Show Gist options
  • Save nunofernandes-plight/809474e395c672f03922d27145940a77 to your computer and use it in GitHub Desktop.
Save nunofernandes-plight/809474e395c672f03922d27145940a77 to your computer and use it in GitHub Desktop.
Fixes the wallet links in the ethereum wallet
// Open the wallet console: Menu -> Develop -> Toggle console ...
// Run the following script
_.each(Wallets.find().fetch(), function(item){
if(item.address)
Wallets.update(item._id, {$set: {address: item.address.toLowerCase()}});
});
_.each(CustomContracts.find().fetch(), function(item){
if(item.address)
CustomContracts.update(item._id, {$set: {address: item.address.toLowerCase()}});
});
_.each(Tokens.find().fetch(), function(item){
if(item.address)
Tokens.update(item._id, {$set: {address: item.address.toLowerCase()}});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment