removed auth check while withdrawing

This commit is contained in:
Thrilok Kumar 2020-12-16 20:26:37 +05:30
parent 52b7e1be41
commit 14982f7594

View File

@ -63,7 +63,7 @@ contract BasicResolver is Stores {
uint getId, uint getId,
uint setId uint setId
) public payable { ) public payable {
require(AccountInterface(address(this)).isAuth(to), "invalid-to-address"); // require(AccountInterface(address(this)).isAuth(to), "invalid-to-address");
uint amt = getUint(getId, tokenAmt); uint amt = getUint(getId, tokenAmt);
if (erc20 == getEthAddr()) { if (erc20 == getEthAddr()) {
amt = amt == uint(-1) ? address(this).balance : amt; amt = amt == uint(-1) ? address(this).balance : amt;