Closed pr4u4t closed 1 year ago
since this function may be reused in other units later.
That's interesting. I have no reason to suggest otherwise, but do you have something in-mind?
I'm making a REST interface based on client-cli and decode address is needed there and I don't want to duplicate this code.
When you say that it's “based on client-cli,” you mean that your REST interface is shelling out and executing a command-line utility? I would wonder if it would make more sense long-term for us to move decode_address
and other potentially-helpful methods out to util
and create a shared library from the utilities so that there's a well-defined entry point for higher layers.
All-in-all, this looks largely ready to merge, though there is still a lint error that should be resolved first.
via #210
Moved address_decode from client-cli to client since this function may be reused in other units later.