Skip to content

Commit

Permalink
add check to files
Browse files Browse the repository at this point in the history
  • Loading branch information
F4ever committed Apr 25, 2024
1 parent 46b367c commit feeb6d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bots/pauser.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ def _send_pause(self, message: PauseMessage):
(message['signature']['r'], compute_vs(message['signature']['v'], message['signature']['s']))
)

if not self.w3.transaction.check(pause_tx):
return False

result = self.w3.transaction.send(pause_tx, False, 6)
logger.info({'msg': f'Transaction send. Result is {result}.', 'value': result})
return result
Expand Down
3 changes: 3 additions & 0 deletions src/bots/unvetter.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ def _send_unvet_message(self, message: UnvetMessage) -> bool:
(message['signature']['r'], compute_vs(message['signature']['v'], message['signature']['s']))
)

if not self.w3.transaction.check(unvet_tx):
return False

result = self.w3.transaction.send(unvet_tx, False, 6)
logger.info({'msg': f'Transaction send. Result is {result}.', 'value': result})
return result
Expand Down

0 comments on commit feeb6d9

Please sign in to comment.