From 83886b4c92b1261b25a116eac43b1971fe655e5c Mon Sep 17 00:00:00 2001 From: Karl Bartel Date: Mon, 25 May 2020 13:45:02 +0200 Subject: [PATCH] Work around newer solidity syntax problems The autodoc soliditydomain has an outdated solidity grammar and thus fails on some new syntax constructs. I've worked around this for now by slightly changing the solidity source code. See https://github.com/cag/sphinxcontrib-soliditydomain/issues/9 --- contracts/services/ServiceRegistry.sol | 2 +- contracts/test/HumanStandardToken.sol | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/contracts/services/ServiceRegistry.sol b/contracts/services/ServiceRegistry.sol index 0cc541f..9bba7c9 100644 --- a/contracts/services/ServiceRegistry.sol +++ b/contracts/services/ServiceRegistry.sol @@ -193,7 +193,7 @@ contract Deposit { /// @notice Withdraws the tokens that have been deposited /// Only `withdrawer` can call this. /// @param _to The address where the withdrawn tokens should go - function withdraw(address payable _to) external { + function withdraw(address to) external { uint256 balance = token.balanceOf(address(this)); require(msg.sender == withdrawer, "the caller is not the withdrawer"); require(now >= release_at || service_registry.deprecated(), "deposit not released yet"); diff --git a/contracts/test/HumanStandardToken.sol b/contracts/test/HumanStandardToken.sol index 8fe0771..e28a8c2 100644 --- a/contracts/test/HumanStandardToken.sol +++ b/contracts/test/HumanStandardToken.sol @@ -65,7 +65,6 @@ contract HumanStandardToken is StandardToken { return true; } - fallback () external { revert(); } function decimals() public override view returns (uint8 decimals) { return _decimals;