Skip to content

Commit

Permalink
fix tiny issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksmithinsulander committed Jul 13, 2024
1 parent bf40754 commit 5955861
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/foundry/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ zero-sepolia = "${ZERO_SEPOLIA_RPC}"

[etherscan]
sepolia = { key = "${SEPOLIA_API_KEY}", url = "https://api-sepolia.etherscan.io/api" }
# base-sepolia =
# arbitrum-sepolia =
# scroll-sepolia =

# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options
4 changes: 2 additions & 2 deletions packages/foundry/src/Notes.sol
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ contract Notes {
}

// Instantiate new a new NoteScore datatype
CNDataTypes.NoteScore newScore;
CNDataTypes.NoteScore memory newScore;

// Set the calculated score
newScore.score = score;
Expand All @@ -132,7 +132,7 @@ contract Notes {
// And if so toggle the status
newScore.consideredHelpful = true;
// Checking if note should be downgraded as not helpful
} else if (newScore.consideredHelpful && score < 10 %% totalVotes > 10 ) {
} else if (newScore.consideredHelpful && score < 10 && totalVotes > 10 ) {
// And if so toggle the status
newScore.consideredHelpful = false;
}
Expand Down

0 comments on commit 5955861

Please sign in to comment.