On the potential of healing metals through electrodeposition