Skip to content

Update balanceOf function documentation#1521

Open
red-swan wants to merge 1 commit intoVectorized:mainfrom
red-swan:patch-2
Open

Update balanceOf function documentation#1521
red-swan wants to merge 1 commit intoVectorized:mainfrom
red-swan:patch-2

Conversation

@red-swan
Copy link
Copy Markdown

Description

Clarify behavior of balanceOf function regarding token existence and execution. Currently it only describes returning zero if the token called does not exist but that is misleading for developers because it will also return zero if the address reverts during its execution or if the address returns less than 32 bytes. This PR adds those to the description of the function.

Checklist

Ensure you completed all of the steps below before submitting your pull request:

  • Ran forge fmt?
  • Ran forge test?

Pull requests with an incomplete checklist will be thrown out.

Clarify behavior of balanceOf function regarding token existence and execution.
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.

1 participant