From 5955861d458049758661cc4091df776148abae4c Mon Sep 17 00:00:00 2001 From: jacksmithinsulander <666.jack.smith@protonmail.com> Date: Sat, 13 Jul 2024 10:33:40 +0200 Subject: [PATCH] fix tiny issue --- packages/foundry/foundry.toml | 3 +++ packages/foundry/src/Notes.sol | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/foundry/foundry.toml b/packages/foundry/foundry.toml index 37e6488..b4cf112 100644 --- a/packages/foundry/foundry.toml +++ b/packages/foundry/foundry.toml @@ -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 diff --git a/packages/foundry/src/Notes.sol b/packages/foundry/src/Notes.sol index 7f0cd69..31da9d6 100644 --- a/packages/foundry/src/Notes.sol +++ b/packages/foundry/src/Notes.sol @@ -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; @@ -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; }