Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Use specific contract type instead of address #507

Closed
1 task
NicholasDotSol opened this issue Mar 3, 2020 · 0 comments · Fixed by #542
Closed
1 task

Use specific contract type instead of address #507

NicholasDotSol opened this issue Mar 3, 2020 · 0 comments · Fixed by #542
Labels

Comments

@NicholasDotSol
Copy link
Contributor

Rather than storing addresses and then casting to the known contract type, it’s better to use the best type available so the compiler can check for type safety.

  • Where possible, use more specific types instead of address. This goes for parameter types as well as state variable types.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant