Skip to content

Commit

Permalink
fix: edge case with empty data transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
banteg committed Nov 11, 2021
1 parent 762cc01 commit 25a3b70
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ dist/
_build/
poetry.lock
.hypothesis/
cache/
build/
2 changes: 1 addition & 1 deletion ape_safe.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def pending_transactions(self) -> List[SafeTx]:
self.build_multisig_tx(
to=tx['to'],
value=int(tx['value']),
data=HexBytes(tx['data']),
data=HexBytes(tx['data'] or b''),
operation=tx['operation'],
safe_tx_gas=tx['safeTxGas'],
base_gas=tx['baseGas'],
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ape-safe"
version = "0.3.0"
version = "0.3.2"
description = "Build complex Gnosis Safe transactions and safely preview them in a forked environment."
authors = ["banteg <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 25a3b70

Please sign in to comment.