archethic-foundation / archethic-node

Official Archethic Blockchain node, written in Elixir
GNU Affero General Public License v3.0
75 stars 22 forks source link

Faucet - add a trim in the address field #468

Closed redDwarf03 closed 2 years ago

redDwarf03 commented 2 years ago

Is your feature request related to a problem?

if the address contains blank at the end of the address, a control says that the address is malformated

Describe the solution you'd like

Could you add a trim function before the control please

Additional context

No response

imnik11 commented 2 years ago

we can just add this before checking https://github.com/archethic-foundation/archethic-node/blob/559e3d699ac428df4f5f5c7cbd18401e2e60b3e9/lib/archethic_web/controllers/faucet_controller.ex#L45

address = String.trim(address)

ghost commented 2 years ago

Closed by #476