Skip to content

Commit

Permalink
feat: add & migrate first smart contract
Browse files Browse the repository at this point in the history
Signed-off-by: rajput-hemant <rajput.hemant2001@gmail.com>
  • Loading branch information
rajput-hemant committed Jun 13, 2023
1 parent 0a854ed commit d8ecdae
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions contracts/FaucetContract.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;

contract Faucet {
// storage variables
uint public funds = 1000; // +ve integer only
int public counter = -10;
}
6 changes: 6 additions & 0 deletions migrations/1_faucet_migration.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// eslint-disable-next-line no-undef
const FaucetContract = artifacts.require("Faucet");

module.exports = function (deployer) {
deployer.deploy(FaucetContract);
};

0 comments on commit d8ecdae

Please sign in to comment.