Skip to content
Closed
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
13 changes: 9 additions & 4 deletions src/safe_cli/operators/safe_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,10 +460,15 @@ def approve_hash(self, hash_to_approve: HexBytes, sender: str) -> bool:
if call_result: # There's revert message
return False
else:
signed_transaction = sender_account.sign_transaction(transaction_to_send)
tx_hash = self.ethereum_client.send_raw_transaction(
signed_transaction["raw_transaction"]
)
if hasattr(sender_account, "get_signed_raw_transaction"): # Ledger, Trezor
raw_transaction = sender_account.get_signed_raw_transaction(
transaction_to_send, self.ethereum_client.get_chain_id()
)
else:
raw_transaction = sender_account.sign_transaction(transaction_to_send)[
"raw_transaction"
]
tx_hash = self.ethereum_client.send_raw_transaction(raw_transaction)
print_formatted_text(
HTML(
f"<ansigreen>Sent tx with tx-hash {to_0x_hex_str(tx_hash)} from owner "
Expand Down
Loading