Update claimTokens methods modifier to onlyProxyOwner
This commit is contained in:
parent
6c7320de64
commit
adb81cf1ca
|
@ -38,7 +38,7 @@ contract ForeignBridgeErcToErc is BasicBridge, BasicForeignBridge {
|
|||
return bytes4(keccak256(abi.encodePacked("erc-to-erc-core")));
|
||||
}
|
||||
|
||||
function claimTokens(address _token, address _to) public onlyOwner {
|
||||
function claimTokens(address _token, address _to) public onlyProxyOwner {
|
||||
require(_token != address(erc20token()));
|
||||
super.claimTokens(_token, _to);
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ contract ForeignBridgeErcToNative is BasicBridge, BasicForeignBridge {
|
|||
return bytes4(keccak256(abi.encodePacked("erc-to-native-core")));
|
||||
}
|
||||
|
||||
function claimTokens(address _token, address _to) public onlyOwner {
|
||||
function claimTokens(address _token, address _to) public onlyProxyOwner {
|
||||
require(_token != address(erc20token()));
|
||||
super.claimTokens(_token, _to);
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ contract ForeignBridgeNativeToErc is ERC677Receiver, BasicBridge, BasicForeignBr
|
|||
return bytes4(keccak256(abi.encodePacked("native-to-erc-core")));
|
||||
}
|
||||
|
||||
function claimTokensFromErc677(address _token, address _to) external onlyOwner {
|
||||
function claimTokensFromErc677(address _token, address _to) external onlyProxyOwner {
|
||||
erc677token().claimTokens(_token, _to);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue