Skip to content

Commit

Permalink
Make fallbacks external (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
sohkai committed Jul 26, 2018
1 parent 623c498 commit 540c4ae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contracts/common/DepositableDelegateProxy.sol
Expand Up @@ -6,7 +6,7 @@ import "./DelegateProxy.sol";
contract DepositableDelegateProxy is DelegateProxy {
event ProxyDeposit(address sender, uint256 value);

function () payable public {
function () external payable {
// send / transfer
if (msg.gas < FWD_GAS_LIMIT) {
require(msg.value > 0 && msg.data.length == 0);
Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/minime/MiniMeToken.sol
Expand Up @@ -493,7 +493,7 @@ contract MiniMeToken is Controlled {
/// @notice The fallback function: If the contract's controller has not been
/// set to 0, then the `proxyPayment` method is called which relays the
/// ether and creates tokens as described in the token controller contract
function () payable public {
function () external payable {
require(isContract(controller));
// Adding the ` == true` makes the linter shut up so...
require(ITokenController(controller).proxyPayment.value(msg.value)(msg.sender) == true);
Expand Down
2 changes: 1 addition & 1 deletion test/mocks/EncodeMock.sol
Expand Up @@ -11,7 +11,7 @@ contract EncodeMock {
EncodeMockInterface(this).gogo(a, b, c);
}

function () public {
function () external {
result = msg.data;
}
}
2 changes: 1 addition & 1 deletion test/mocks/VaultMock.sol
Expand Up @@ -4,7 +4,7 @@ pragma solidity 0.4.18;
contract VaultMock {
event LogFund(address sender, uint256 amount);

function () public payable {
function () external payable {
LogFund(msg.sender, msg.value);
}
}

0 comments on commit 540c4ae

Please sign in to comment.