Skip to content

Commit 25a3b70

Browse files
committed
fix: edge case with empty data transactions
1 parent 762cc01 commit 25a3b70

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ dist/
22
_build/
33
poetry.lock
44
.hypothesis/
5+
cache/
6+
build/

ape_safe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def pending_transactions(self) -> List[SafeTx]:
205205
self.build_multisig_tx(
206206
to=tx['to'],
207207
value=int(tx['value']),
208-
data=HexBytes(tx['data']),
208+
data=HexBytes(tx['data'] or b''),
209209
operation=tx['operation'],
210210
safe_tx_gas=tx['safeTxGas'],
211211
base_gas=tx['baseGas'],

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "ape-safe"
3-
version = "0.3.0"
3+
version = "0.3.2"
44
description = "Build complex Gnosis Safe transactions and safely preview them in a forked environment."
55
authors = ["banteg <[email protected]>"]
66
license = "MIT"

0 commit comments

Comments
 (0)