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

Making to_address field in calls optional #111

Merged
merged 1 commit into from
Feb 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions ethtx/decoders/semantic/calls.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ def decode(
proxies: Dict[str, Proxy],
) -> DecodedCall:

standard = self.repository.get_standard(call.chain_id, call.to_address.address)

function_transformations = self.repository.get_transformations(
call.chain_id, call.to_address.address, call.function_signature
)
Expand Down
2 changes: 1 addition & 1 deletion ethtx/models/decoded_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class DecodedCall(BaseModel):
call_id: Optional[str]
call_type: str
from_address: AddressInfo
to_address: AddressInfo
to_address: Optional[AddressInfo]
value: float
function_signature: str
function_name: str
Expand Down
2 changes: 1 addition & 1 deletion ethtx/models/objects_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class Call(BaseModel):
call_type: str
call_gas: Optional[int]
from_address: str
to_address: str
to_address: Optional[str]
call_value: int
call_data: str
return_value: str
Expand Down