Skip to content

Commit

Permalink
May 25, 2023, 7:04 AM
Browse files Browse the repository at this point in the history
  • Loading branch information
xthet committed May 25, 2023
1 parent 7bec497 commit 79c1e4c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
6 changes: 3 additions & 3 deletions contracts/Campaign.sol
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ contract Campaign is KeeperCompatibleInterface, ReentrancyGuard{
// }

// getter functions
function getRewardKeys() external view returns(uint256[] memory){
return rKeys;
}
// function getRewardKeys() external view returns(uint256[] memory){
// return rKeys;
// }

// function getReward(uint256 _priceID) external view returns(Reward.RewardObject memory) {
// Reward reward = Reward(rewards[_priceID]);
Expand Down
12 changes: 10 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import "dotenv/config"
import "solidity-coverage"
import "hardhat-deploy"
import "solidity-coverage"
import "hardhat-contract-sizer"
import { HardhatUserConfig } from "hardhat/config"


Expand All @@ -17,12 +18,19 @@ const config: HardhatUserConfig =
settings:{
optimizer: {
enabled: true,
runs: 2000,
runs: 200,
},
"viaIR": true,
},
},

contractSizer: {
alphaSort: true,
disambiguatePaths: false,
runOnCompile: true,
strict: true,
// only: [":ERC20$"],
unit: "kB"
},
defaultNetwork: "hardhat",
networks: {
hardhat: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"ethereum-waffle": "^3.4.4",
"ethers": "^5.4.7",
"hardhat": "^2.11.1",
"hardhat-contract-sizer": "^2.6.1",
"hardhat-contract-sizer": "^2.9.0",
"hardhat-deploy": "^0.11.19",
"hardhat-gas-reporter": "^1.0.9",
"solidity-coverage": "^0.8.0",
Expand Down
9 changes: 5 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5117,13 +5117,14 @@ har-validator@~5.1.3:
ajv "^6.12.3"
har-schema "^2.0.0"

hardhat-contract-sizer@^2.6.1:
version "2.6.1"
resolved "https://registry.yarnpkg.com/hardhat-contract-sizer/-/hardhat-contract-sizer-2.6.1.tgz#2b0046a55fa1ec96f19fdab7fde372377401c874"
integrity sha512-b8wS7DBvyo22kmVwpzstAQTdDCThpl/ySBqZh5ga9Yxjf61/uTL12TEg5nl7lDeWy73ntEUzxMwY6XxbQEc2wA==
hardhat-contract-sizer@^2.9.0:
version "2.9.0"
resolved "https://registry.yarnpkg.com/hardhat-contract-sizer/-/hardhat-contract-sizer-2.9.0.tgz#2db75a676034ad9657cfe38793d38514ed6349a7"
integrity sha512-0I5lJo0iVPfK3YQNRv+zF4KHcdPbXPp9VCCOTcpDK/mfjWHiPxQwZv7eVt9S1JjvegjAVRtJPe9U5zQtd8LJGA==
dependencies:
chalk "^4.0.0"
cli-table3 "^0.6.0"
strip-ansi "^6.0.0"

hardhat-deploy@^0.11.19:
version "0.11.19"
Expand Down

0 comments on commit 79c1e4c

Please sign in to comment.