substrate
substrate copied to clipboard
registrar: Avoid freebies in `provide_judgement`
In provide_judgement, evaluate the return value of repatriate_reserved and do not store the judgement if it fails. The registrar will still have to pay the fees without getting any compensation but at least the user won't get a confirmed identity for free.
I want to pick this up. @gavofyork @bkchr
Meanwhile, should any specific error be thrown if the result coming from repatriate_reserved is an error?
You probably want to introduce a new error variant, but nothing fancy.
You probably want to introduce a new error variant, but nothing fancy.
Alright. done