Skip to content

Test that total_supply call returns "" vs raise an exception #4945

@rakanalh

Description

@rakanalh

For the comment @hackaugusto made here:

#4936 (comment)

It is assumed that calling total_supply for an invalid token returns "". However, web3 might be throwing an exception.

Acceptance Criteria

  • Write a test to verify which case happens
  • If an exception is raised, update calls to total_supply to handle the exception.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions