-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question / Feature: account:Account param in certain util methods may only need SA address #67
Comments
tbh I dont like how we handle accounts and clients in the sdk now - for v0.2 I have some ideas for how we can streamline the ux and open to feedback here |
This extends to other methods as well which do not leverage any additional property from the account object other than the address. Should this change extend to those methods as well? |
yeah I wonder what the best solution here is - one option would be to still use the account but make it into a class and have the methods be called on this class, like what do you think the best solution would be here? |
Where are these methods being leveraged and are these only used in a TS environment? Since TS types and interfaces don’t exist at runtime, if type safety is a priority, then we should either use a class or use Typeguards for our function arguments. I will review any similar or related projects to see what they follow |
Describe the feature you would like
below methods
requires a whole Account object to be passed. can it be just smartAccountAddress or conditional optional params
Additional context
No response
The text was updated successfully, but these errors were encountered: