chain-jslib
chain-jslib copied to clipboard
Problem: Change string to Address type
This issue is for a different type of addresses we handle in our SDK. Will it be a better idea to:
- Add address type validation in
owTypes.
- Create a custom
Address
type instead of directly usingstring
which kind of mitigates user address input level issues
What's your thoughts?
Not sure I understand this ticket well,
- Which problem is it trying to solve?
- What's the suggested approach?
Thanks @eddycpc
Which problem is it trying to solve?
It's less of a problem and more of an enhancement. It's basically mitigating the address format and length level issues which I think we can take care of at an earlier stage.
What's the suggested approach?
- Create a custom address type class
Address
which when instantiated likenew Address()
can be referenced.