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
describe("Apartment should be shareable", () => { | |
it("should be possible to have an apartment distributed among several shareholders", async () => { | |
//arrange | |
const apartmentFactory = await ethers.getContractFactory("ApartmentContract"); | |
apartment = await apartmentFactory.deploy(); | |
await apartment.deployed(); | |
[owner, Alice, Bob, Joe] = await ethers.getSigners(); | |
//act |
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
//SPDX-License-Identifier: Unlicense | |
pragma solidity ^0.8.0; | |
import "hardhat/console.sol"; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
contract Apartment is ERC20 { | |
constructor() ERC20("ApartmentContract", "APRTM") { |
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
/** | |
*Submitted for verification at Etherscan.io on 2021-09-03 | |
*/ | |
/** | |
*Submitted for verification at Etherscan.io on 2021-08-27 | |
*/ | |
// SPDX-License-Identifier: MIT |