Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bokkypoobah committed Oct 11, 2022
1 parent c5618bd commit 2e54b9d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
8 changes: 5 additions & 3 deletions contracts/Nix.sol
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
pragma solidity ^0.8.0;

// ----------------------------------------------------------------------------
// Nix v0.8.5 testing to be deployed
// Nix v0.9.1 alpha
//
// https://github.com/bokkypoobah/Nix
//
// Deployed to Rinkeby
// Deployed to
// - Nix
// - NixHelper
//
Expand Down Expand Up @@ -126,8 +126,10 @@ contract Owned {


contract ReentrancyGuard {
error ReentrancyAttempted();
uint private _executing;

error ReentrancyAttempted();

modifier reentrancyGuard() {
if (_executing == 1) {
revert ReentrancyAttempted();
Expand Down
20 changes: 14 additions & 6 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,19 @@ task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: "0.8.11",
settings: {
optimizer: {
enabled: true,
runs: 200
solidity: {
version: "0.8.15",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
},
defaultNetwork: "hardhat",
networks: {
hardhat: {
blockGasLimit: 30_000_000,
},
},
};

0 comments on commit 2e54b9d

Please sign in to comment.