Skip to content

Commit

Permalink
style(contracts): put event log emits last
Browse files Browse the repository at this point in the history
  • Loading branch information
fubuloubu committed Sep 28, 2024
1 parent dbdd779 commit 9262ad4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/StreamManager.vy
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ def transfer_control(new_controller: address):
# NOTE: can revoke transfer at any time calling this method with `self.controller`
assert msg.sender == self.controller # dev: not controller

log NewControllerProposed(msg.sender, new_controller)

self.new_controller = new_controller
self.new_controller_proposed = block.timestamp

log NewControllerProposed(msg.sender, new_controller)


@external
def accept_control():
Expand All @@ -162,11 +162,11 @@ def accept_control():
assert msg.sender == self.new_controller # dev: not proposed controller
assert block.timestamp - self.new_controller_proposed >= CONTROLLER_ACCEPTANCE_DELAY

log NewControllerAccepted(self.controller, msg.sender)

self.controller = msg.sender
self.new_controller = empty(address)

log NewControllerAccepted(self.controller, msg.sender)


@external
def set_capabilities(account: address, capabilities: Ability):
Expand Down

0 comments on commit 9262ad4

Please sign in to comment.