Skip to content
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

Make getTokenStandardAndDetails function signature reflect that the second arg is optional #717

Merged
merged 1 commit into from
Mar 11, 2022

Conversation

adonesky1
Copy link
Contributor

  • CHANGED:

    • Make getTokenStandardAndDetails function signature reflect that the second arg is optional. Consumers of this method can continue to pass the userAddress as a second option if they are wanting to query for the user balance of an ERC20 token.

@adonesky1 adonesky1 requested a review from a team as a code owner March 10, 2022 21:09
Copy link
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're going to do this it would be nice if getTokenStandardAndDetails took an object rather than positional arguments. Otherwise people will have to say getTokenStandardAndDetails('some token address', null, 'some token id') if they aren't interested in passing userAddress. But, I guess we'd have to issue another breaking change, so I'm good with this.

@adonesky1
Copy link
Contributor Author

adonesky1 commented Mar 10, 2022

If we're going to do this it would be nice if getTokenStandardAndDetails took an object rather than positional arguments...

Agreed. Lets make the function take an object in a later PR and pull it into a release that will already contain breaking changes maybe? @mcmire

@mcmire
Copy link
Contributor

mcmire commented Mar 10, 2022

@adonesky1 Yup sounds good!

@adonesky1 adonesky1 merged commit b3edff2 into main Mar 11, 2022
@adonesky1 adonesky1 deleted the make-arg-optional branch March 11, 2022 00:07
soralit pushed a commit to KeystoneHQ/controllers that referenced this pull request Mar 14, 2022
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants