Skip to content

Commit

Permalink
fix: readd bench contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
fkrause98 committed Aug 27, 2024
1 parent 9f37923 commit 2a3b405
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
pragma solidity ^0.8.0;

contract benchmark {
uint256 value;
constructor() {
value = fib(25);
}

function get_calculation() public view returns (uint256) {
return value;
}

function fib(uint256 n) internal returns (uint256) {
if (n <= 1) {
return n;
}
return fib(n - 1) + fib(n - 2);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
pragma solidity >=0.8.20;

contract Send {
constructor() {
address payable self = payable(msg.sender);
self.call{value: 100};
}
}

0 comments on commit 2a3b405

Please sign in to comment.