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

[iota-types] Refactor is_methods in base_types #5051

Open
miker83z opened this issue Jan 28, 2025 · 0 comments
Open

[iota-types] Refactor is_methods in base_types #5051

miker83z opened this issue Jan 28, 2025 · 0 comments
Labels
sc-platform Issues related to the Smart Contract Platform group.

Comments

@miker83z
Copy link
Contributor

Stems from here.
-Since all method bodies are essentially the same we could factor this logic out expecting a closure

  • Then just pass { AliasOutput::is_alias_output, NftOutput::is_nft_output, ... } in each of the different cases.
  • Should make the code a bit less noisy and potentially less error prone.
@miker83z miker83z added the sc-platform Issues related to the Smart Contract Platform group. label Jan 28, 2025
@miker83z miker83z changed the title [iota-types] Refactor is_methods [iota-types] Refactor is_methods in base_types Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sc-platform Issues related to the Smart Contract Platform group.
Projects
None yet
Development

No branches or pull requests

1 participant