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

Commit

Permalink
Run formatting tool
Browse files Browse the repository at this point in the history
  • Loading branch information
i-stam committed Jun 25, 2020
1 parent 3c7ade7 commit ef9c0c2
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 17 deletions.
2 changes: 1 addition & 1 deletion build/mocks/walletMock/WalletMock.bin

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/mocks/walletMock/combined.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/walletDeployer/WalletDeployer.bin

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/walletDeployer/combined.json

Large diffs are not rendered by default.

12 changes: 3 additions & 9 deletions contracts/mocks/walletMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,15 @@ pragma solidity 0.5.17;


contract WalletMock {


/// @dev Ether can be deposited from any source, so this contract must be payable by anyone.
function() external payable {
}
function() external payable {}



function transfer(address payable _to, uint256 _amount) external {
_to.transfer(_amount);
_to.transfer(_amount);
}

function sendValue(address payable _to, uint256 _amount) external {
(bool success, ) = _to.call.value(_amount)("");
require(success, "sendValue failed");
require(success, "sendValue failed");
}

}
4 changes: 2 additions & 2 deletions contracts/walletDeployer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ contract WalletDeployer is ENSResolvable, Controllable {
Wallet(wallet).setWhitelist(_whitelistedAddresses);
}

// Change admin before transfering owenrship.
// Change admin before transferring owenrship.
BaseAdminUpgradeabilityProxy(wallet).changeAdmin(_owner);
// Change ownership and set tarnsferable to false so ownership cannot be transferred again.
// Change ownership and set transferable to false so ownership cannot be transferred again.
Wallet(wallet).transferOwnership(_owner, false);

if (msg.value > 0) {
Expand Down
Loading

0 comments on commit ef9c0c2

Please sign in to comment.