-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix struct references. Version bump to v0.0.43 (#135)
Fixes an issue where struct references don't get matched up correctly. See new `struct_references` test that highlights this issue. - When finding what type files to import when building type files (for struct references in other files), we look at the contract name of structs instead of looking for structs in abis. - Always reference a fully qualified name for nested structs. This solves issues around creating the return type data structure when doing `function.call()`. - Define the python type as the fully qualified name. This solves an issue with structures in different file references and functions returning a vector of the struct. - Handle the case when a struct doesn't get referenced with a contract name in the abi. - Fix to handling of struct arrays as input/output to functions with fully qualified names for structs. This might solve #98
- Loading branch information
Showing
61 changed files
with
1,084 additions
and
187 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
"""Export all types from generated files. | ||
DO NOT EDIT. This file was generated by pypechain v0.0.41. | ||
DO NOT EDIT. This file was generated by pypechain v0.0.43. | ||
See documentation at https://github.com/delvtech/pypechain """ | ||
|
||
from .ExampleContract import ExampleContract |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
pypechain == 0.0.41 | ||
pypechain == 0.0.43 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
"""Module for rendering contracts.""" | ||
|
||
from .render import render_contracts |
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
File renamed without changes.
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
Oops, something went wrong.