Skip to content

Commit

Permalink
fix(biohazard): remove Methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroEkkusu committed Mar 17, 2022
1 parent e2b5444 commit 87c5ece
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 43 deletions.
22 changes: 3 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,25 +112,9 @@ SAVES (GAS): 5

**Note:** Combine with other commands at your disposal for more power. You can run `forge test --gas-report` to print the absolute gas costs as well.

You can use [`doSomething()`](src/biohazard/Methods.sol) as a placeholder whenever you need to prevent the optimizer from inlining your function, instead of writing meaningless code:

```solidity
contract Sample0 is SharedSetup {
function measureGas() external {
doSomething();
}
}
contract Sample1 is SharedSetup {
function measureGas() external payable {
doSomething();
}
}
```

`Samples.sol` files are easy to share with others!

Try copy-pasting their contents to another system and they'll work out of the box. No setup required.
> `Samples.sol` files are easy to share with others!
>
> Try copy-pasting their contents to another system and they'll work out of the box. No setup required.
### GFlask usage

Expand Down
4 changes: 1 addition & 3 deletions src/Samples.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pragma solidity 0.8.11;

// Samples for: ____________

contract SharedSetup is Methods {
contract SharedSetup {

}

Expand Down Expand Up @@ -59,5 +59,3 @@ abstract contract Labels {
string label4 = "";
string label5 = "";
}

import "src/biohazard/Methods.sol";
21 changes: 0 additions & 21 deletions src/biohazard/Methods.sol

This file was deleted.

0 comments on commit 87c5ece

Please sign in to comment.