Skip to content

Commit 6886cea

Browse files
Fixed contract address used instead of an alias when typename is not set (#186)
1 parent 45ed438 commit 6886cea

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
Please use [this](https://docs.gitlab.com/ee/development/changelog.html) document as guidelines to keep a changelog.
44

5+
## [unreleased]
6+
7+
### Fixed
8+
9+
* codegen: Fixed contract address used instead of an alias when typename is not set.
10+
511
## 4.0.0-rc2 - 2021-12-11
612

713
### ⚠ Migration

src/dipdup/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def __hash__(self):
182182

183183
@cached_property
184184
def module_name(self) -> str:
185-
return self.typename if self.typename is not None else self.address
185+
return self.typename or self.name
186186

187187
@validator('address', allow_reuse=True)
188188
def valid_address(cls, v):

0 commit comments

Comments
 (0)