Closed leighmcculloch closed 2 months ago
Add Address::from_str.
Address::from_str
For convenient conversions directly from a &str to an Address in tests:
Address::from_str(&env, "C...")
It is possible to do the same with:
Address::from_string(String::from_str(&env, "C..."))
But that is so verbose, the nested fn calls often get rustfmted to span multiple lines.
What
Add
Address::from_str
.Why
For convenient conversions directly from a &str to an Address in tests:
It is possible to do the same with:
But that is so verbose, the nested fn calls often get rustfmted to span multiple lines.