Skip to content

fix(models): coerce sender and key_id to checksummed address hex in to_estimate_gas_request and support dict in _normalize_arg - #80

Open
yappermoar-boop wants to merge 1 commit into
tempoxyz:mainfrom
yappermoar-boop:fix-estimate-gas-address-coercion-and-dict-normalization
Open

fix(models): coerce sender and key_id to checksummed address hex in to_estimate_gas_request and support dict in _normalize_arg#80
yappermoar-boop wants to merge 1 commit into
tempoxyz:mainfrom
yappermoar-boop:fix-estimate-gas-address-coercion-and-dict-normalization

Conversation

@yappermoar-boop

Copy link
Copy Markdown

In pytempo/models.py, updated to_estimate_gas_request to accept BytesLike for sender and key_id and format them as checksummed address hex strings to prevent JSON serialization errors when Address/bytes instances are passed. In pytempo/contracts/_encode.py, added dictionary traversal support to _normalize_arg for struct/mapping arguments.

…o_estimate_gas_request and support dict in _normalize_arg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant