-
-
Save piorot/8b54e19e600185e737949ba7be239364 to your computer and use it in GitHub Desktop.
It should be possible to transfer some shares to another user
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
it("It should be possible to transfer some shares to another user", async () => { | |
const Apartment = await ethers.getContractFactory("Apartment"); | |
const apartment = await Apartment.deploy(); | |
[owner, Alice] = await ethers.getSigners(); | |
await apartment.deployed(); | |
await apartment.transfer(Alice.address, 20); | |
expect(await apartment.balanceOf(Alice.address)).to.equal(20); | |
expect(await apartment.balanceOf(owner.address)).to.equal(80); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment