Make setAllowances external

This commit is contained in:
Leonid Logvinov 2018-02-05 15:19:23 +01:00
parent 413e8b6062
commit c6358d5f22
No known key found for this signature in database
GPG Key ID: 0DD294BFDE8C95D4

View File

@ -19,7 +19,7 @@ contract Arbitrage is Ownable {
proxyAddress = _proxyAddress;
}
function setAllowances(address tokenAddress) public onlyOwner {
function setAllowances(address tokenAddress) external onlyOwner {
Token token = Token(tokenAddress);
token.approve(address(etherDelta), MAX_UINT);
token.approve(proxyAddress, MAX_UINT);