feat: flow seems fine
@@ -50,29 +50,32 @@ class ApeSafeHelper:
"""
if not web3.isChecksumAddress(address):
address = web3.ens.resolve(address)
- return Contract.from_abi(address=address, owner=self.safe.account, name=name, abi=abi)
+ return Contract.from_abi(
+ address=address, owner=self.safe.account, name=name, abi=abi
+ )
def print_transaction(self, safe_tx):
safe_tx.safe_tx_gas = 7000000
safe_tx.base_gas = 8000000
data = {
- 'to': safe_tx.to,
- 'value': safe_tx.value,
- 'data': safe_tx.data.hex() if safe_tx.data else None,
- 'operation': safe_tx.operation,
- 'gasToken': safe_tx.gas_token,
- 'safeTxGas': safe_tx.safe_tx_gas,
- 'baseGas': safe_tx.base_gas,
- 'gasPrice': safe_tx.gas_price,
- 'refundReceiver': safe_tx.refund_receiver,
- 'nonce': safe_tx.safe_nonce,
- 'contractTransactionHash': safe_tx.safe_tx_hash.hex(),
- 'signature': safe_tx.signatures.hex() if safe_tx.signatures else None,
- 'origin': 'github.com/banteg/ape-safe',
+ "to": safe_tx.to,
+ "value": safe_tx.value,
+ "data": safe_tx.data.hex() if safe_tx.data else None,
+ "operation": safe_tx.operation,
+ "gasToken": safe_tx.gas_token,
+ "safeTxGas": safe_tx.safe_tx_gas,
+ "baseGas": safe_tx.base_gas,
+ "gasPrice": safe_tx.gas_price,
+ "refundReceiver": safe_tx.refund_receiver,
+ "nonce": safe_tx.safe_nonce,
+ "contractTransactionHash": safe_tx.safe_tx_hash.hex(),
+ "signature": safe_tx.signatures.hex() if safe_tx.signatures else None,
+ "origin": "github.com/banteg/ape-safe",
}
print(data)
return data
+
class OPERATION(Enum):
CREATE = 0
CALL = 2
@@ -219,7 +222,12 @@ class GnosisSafe:
table.append([key, metadata, params["to"], params["data"]])
- print(tabulate(table, tablefmt="pretty",))
+ print(
+ tabulate(
+ table,
+ tablefmt="pretty",
+ )
+ )
def multisig_success(tx):
