Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makes use of
Self
Type in Contract factory methods
1. Uses the recently added `Self` Type for better type inference whenever Contract is subclassed 2. Fixes the return type of `Contract.factory` to indicate that a class is returned instead of an instance thereof
- Loading branch information
konichuvak
committed
Jun 22, 2023
1 parent
5c6c657
commit 82beef8
Showing
2 changed files
with
18 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters