Closed barinbritva closed 1 month ago
There is often a case when you have adress either as string or Address, but you have to pass exactly Address further.
string
Address
To not do conditional parse in the client side code we could incapsulate the ogic in toAddress method.
parse
toAddress
I do not think this is a part of a standard library. I expect the developers should handle parse explicitly cause it can throw errors.
There is often a case when you have adress either as
string
orAddress
, but you have to pass exactlyAddress
further.To not do conditional
parse
in the client side code we could incapsulate the ogic intoAddress
method.