From 2d8b498fe74cd6e1099ab5cacaea35a81319be0c Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Fri, 10 Feb 2023 11:39:27 +0800 Subject: [PATCH] Revert "feat(protocol): restrict receive()'s msg.sender to vaults (#13110)" This reverts commit 2d8fa12a72f6850f75adb468d945af080671f3f8. --- packages/protocol/contracts/bridge/Bridge.sol | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/protocol/contracts/bridge/Bridge.sol b/packages/protocol/contracts/bridge/Bridge.sol index dbc5b9ce85b..bd1f8dd014e 100644 --- a/packages/protocol/contracts/bridge/Bridge.sol +++ b/packages/protocol/contracts/bridge/Bridge.sol @@ -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.