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

Provide convenience method to get Method by name from abi.{Contract|Interface} #184

Closed
barnjamin opened this issue Jun 7, 2022 · 0 comments
Assignees
Labels
new-feature-request Feature request that needs triage Team Scytale

Comments

@barnjamin
Copy link
Contributor

barnjamin commented Jun 7, 2022

Problem

I expect the most common use of the Contract/Interface objects will be to read some json and use it to populate ATC method calls.

We should provide an easy way to access the methods by name, they're currently stored in a list

Solution

Implement a method get_method_by_name that accepts a name string and searches for a matching method, returning it if only 1 is found.

If none or >1 are found, raise error

PRs

Tests: #185 (MERGED)
Python: algorand/py-algorand-sdk#345 (MERGED)
JS: algorand/js-algorand-sdk#583 (MERGED)
Go: algorand/go-algorand-sdk#330 (MERGED)
Java: algorand/java-algorand-sdk#337 (MERGED)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature-request Feature request that needs triage Team Scytale
Projects
None yet
Development

No branches or pull requests

2 participants