Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some typos #786

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function createProposal(string memory _description) public {

```
function voteYes(uint _proposalId, uint _tokenAmount) public {
require(isMember[msg.sender] == true, "You should be a memeber to vote");
require(isMember[msg.sender] == true, "You should be a member to vote");
require(balances[msg.sender] >= _tokenAmount, "Not enough tokens to vote");
require(votes[msg.sender][_proposalId] == false, "You have already voted for this proposal");
votes[msg.sender][_proposalId] = true;
Expand Down Expand Up @@ -57,7 +57,7 @@ function voteYes(uint _proposalId, uint _tokenAmount) public {

```
function voteNo(uint _proposalId, uint _tokenAmount) public {
require(isMember[msg.sender] == true, "You should be a memeber to vote");
require(isMember[msg.sender] == true, "You should be a member to vote");
require(balances[msg.sender] >= _tokenAmount, "Not enough tokens to vote");
require(votes[msg.sender][_proposalId] == false, "You have already voted for this proposal");
votes[msg.sender][_proposalId] = true;
Expand Down Expand Up @@ -188,7 +188,7 @@ contract DAO {

// Function for a member to vote on a proposal
function voteYes(uint _proposalId, uint _tokenAmount) public {
require(isMember[msg.sender] == true, "You should be a memeber to vote");
require(isMember[msg.sender] == true, "You should be a member to vote");
require(balances[msg.sender] >= _tokenAmount, "Not enough tokens to vote");
require(votes[msg.sender][_proposalId] == false, "You have already voted for this proposal");
votes[msg.sender][_proposalId] = true;
Expand All @@ -199,7 +199,7 @@ contract DAO {
}

function voteNo(uint _proposalId, uint _tokenAmount) public {
require(isMember[msg.sender] == true, "You should be a memeber to vote");
require(isMember[msg.sender] == true, "You should be a member to vote");
require(balances[msg.sender] >= _tokenAmount, "Not enough tokens to vote");
require(votes[msg.sender][_proposalId] == false, "You have already voted for this proposal");
votes[msg.sender][_proposalId] = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function main() {
const GeneralDAOVotingFactory = await ethers.getContractFactory("GeneralDAOVoting");
const VotingContract = GeneralDAOVotingFactory.attach(VOTING_CONTRACT_ADDRESS);

// Merkle Root; Chnage the address accordingly, make sure there are at least two
// Merkle Root; Change the address accordingly, make sure there are at least two
let addresses = [
{
addr: "0xABe215Fb79fB827978C82379d5974831E2FB5E0d",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ If you find an error, resolve it and submit a pull request. Let's build this!

## 🤝 Sounds fun! How do I contribute

Since our projects and their tutorials are available and opensourced for everyone, you can step us and report issues, resolve them and become a contributer too. [Follow this short guide](https://docs.github.com/en/repositories/working-with-files/managing-files/editing-files#editing-files-in-another-users-repository) by GitHub on how you can edit & contribute.
Since our projects and their tutorials are available and opensourced for everyone, you can step us and report issues, resolve them and become a contributor too. [Follow this short guide](https://docs.github.com/en/repositories/working-with-files/managing-files/editing-files#editing-files-in-another-users-repository) by GitHub on how you can edit & contribute.

## ✨ Contributors

Expand Down