Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Commit

Permalink
Work around newer solidity syntax problems
Browse files Browse the repository at this point in the history
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 cag/sphinxcontrib-soliditydomain#9
  • Loading branch information
karlb committed May 25, 2020
1 parent 5299e79 commit 3059f19
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/services/ServiceRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
1 change: 0 additions & 1 deletion contracts/test/HumanStandardToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ contract HumanStandardToken is StandardToken {
return true;
}

fallback () external { revert(); }

function decimals() public override view returns (uint8 decimals) {
return _decimals;
Expand Down

0 comments on commit 3059f19

Please sign in to comment.