Skip to content

Commit

Permalink
Revert "feat(protocol): restrict receive()'s msg.sender to vaults (#1…
Browse files Browse the repository at this point in the history
…3110)"

This reverts commit 2d8fa12.
  • Loading branch information
dantaik committed Feb 10, 2023
1 parent 3f6aa52 commit 2d8b498
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/protocol/contracts/bridge/Bridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,7 @@ contract Bridge is EssentialContract, IBridge {

/// Allow Bridge to receive ETH from the TokenVault or EtherVault.
receive() external payable {
// Ensure the sender is either the Ether vault or the token vault.
require(
msg.sender == this.resolve("token_vault", false) ||
msg.sender == this.resolve("ether_vault", true)
);
// TODO(dave,PR#13110): require the sender is the TokenVault or EtherVault
}

/// @dev Initializer to be called after being deployed behind a proxy.
Expand Down

0 comments on commit 2d8b498

Please sign in to comment.