Skip to content

Commit

Permalink
Dev (#8)
Browse files Browse the repository at this point in the history
* Dev (#2)

* Remove default MIT license

* Remove libraries

Co-authored-by: Madeveda <[email protected]>

* forge install: forge-gas-snapshot

* add testing info

* remove versioning

* add gasmetering to tests (#1)

* update solidity version

* add issue templates

* add coverage script

* add formatting rules

* add RPCs

---------

Co-authored-by: Madeveda <[email protected]>

* Ignore coverage report, increase coverage, adjust CI

---------

Signed-off-by: Daniel Gretzke <[email protected]>
Co-authored-by: Madeveda <[email protected]>
  • Loading branch information
gretzke and Madeveda authored Oct 16, 2024
1 parent 0c61558 commit 94864d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions script/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ import {Counter} from 'src/Counter.sol';
contract Deploy is Script {
using stdJson for string;

function run() public returns (Counter counter) {
vm.startBroadcast(vm.envUint('PRIVATE_KEY'));
function run() public returns (Counter) {
uint256 initialNumber = 5;
counter = new Counter(initialNumber);
vm.stopBroadcast();
return new Counter(initialNumber);
}
}
1 change: 0 additions & 1 deletion test/Counter.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ contract DeploymentTest is Test {
Counter counter;

function setUp() public virtual {
vm.setEnv('PRIVATE_KEY', vm.toString(makeAccount('DEPLOYER').key));
counter = new Deploy().run();
}

Expand Down

0 comments on commit 94864d8

Please sign in to comment.