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; }