This repository has been archived by the owner on Jan 4, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
61 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity >=0.4.25 <0.9.0; | ||
|
||
import { MetaCoin as Coin } from "./MetaCoin.sol"; | ||
import {MetaCoin as Coin} from './MetaCoin.sol'; | ||
|
||
contract WrappedMetaCoin { | ||
Coin public underlying; | ||
Coin public underlying; | ||
|
||
constructor(Coin _underlying) public { | ||
underlying = _underlying; | ||
} | ||
constructor(Coin _underlying) public { | ||
underlying = _underlying; | ||
} | ||
|
||
function sendCoin(address receiver, uint amount) public returns(bool sufficient) { | ||
return underlying.sendCoin(receiver, amount); | ||
} | ||
function sendCoin(address receiver, uint amount) public returns (bool sufficient) { | ||
return underlying.sendCoin(receiver, amount); | ||
} | ||
|
||
function getBalanceInEth(address addr) public view returns(uint){ | ||
return underlying.getBalanceInEth(addr); | ||
} | ||
function getBalanceInEth(address addr) public view returns (uint) { | ||
return underlying.getBalanceInEth(addr); | ||
} | ||
|
||
function getBalance(address addr) public view returns(uint) { | ||
return underlying.getBalance(addr); | ||
} | ||
function getBalance(address addr) public view returns (uint) { | ||
return underlying.getBalance(addr); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
examples/openzeppelin-token/contracts/SimpleTokenUpgradeable.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol"; | ||
import '@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol'; | ||
|
||
contract SimpleTokenUpgradeable is ERC20Upgradeable { | ||
function __SimpleToken_init() external initializer { | ||
__ERC20_init("Simple Token", "SIM"); | ||
__ERC20_init('Simple Token', 'SIM'); | ||
_mint(msg.sender, 1000000 * (10 ** uint256(decimals()))); | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
examples/openzeppelin-token/contracts/SimpleTokenUpgradeable2.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol"; | ||
import '@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol'; | ||
|
||
contract SimpleTokenUpgradeable2 is ERC20Upgradeable { | ||
function __SimpleToken_init() external initializer { | ||
__ERC20_init("Simple Token", "SIM"); | ||
__ERC20_init('Simple Token', 'SIM'); | ||
_mint(msg.sender, 1000000 * (10 ** uint256(decimals()))); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters