Skip to content

Commit

Permalink
modify contract
Browse files Browse the repository at this point in the history
  • Loading branch information
andreespirela committed Dec 21, 2023
1 parent b4a7ab0 commit 48fc3c9
Showing 1 changed file with 30 additions and 25 deletions.
55 changes: 30 additions & 25 deletions crates/evm/wevm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,31 +107,36 @@ mod tests {

#[tokio::test]
pub async fn test_wevm() {
// SPDX-License-Identifier: MIT
// pragma solidity ^0.8.0;
// contract Calculator {
// string public storedString;
//
// // Constructor to initialize the stored string
// constructor(string memory _initString) {
// storedString = _initString;
// }
//
// // Function to add two numbers
// function add(uint256 a, uint256 b) public pure returns (uint256) {
// return a + b;
// }
//
// // Recursive function to calculate Fibonacci number
// function fibonacci(uint256 n) public returns (uint256) {
// if (n <= 1) {
// return n;
// } else {
// return fibonacci(n - 1) + fibonacci(n - 2);
// }
// }
// }

// // SPDX-License-Identifier: MIT
// pragma solidity ^0.8.0;
//
// contract Calculator {
// string private storedString;
//
// // Constructor to initialize the stored string
// constructor(string memory _initString) {
// storedString = _initString;
// }
//
// // Function to view the stored string
// function getStoredString() public view returns (string memory) {
// return storedString;
// }
//
// // Function to add two numbers
// function add(uint256 a, uint256 b) public pure returns (uint256) {
// return a + b;
// }
//
// // Recursive function to calculate Fibonacci number
// function fibonacci(uint256 n) public returns (uint256) {
// if (n <= 1) {
// return n;
// } else {
// return fibonacci(n - 1) + fibonacci(n - 2);
// }
// }
// }
let mut initial_memory: BTreeMap<H256, H256> = BTreeMap::new();
initial_memory.insert(H256::from_str("0x0000000000000000000000000000000000000000000000000000000000000000").unwrap(), H256::from_str("0x48656c6c6f20576f726c64000000000000000000000000000000000000000016").unwrap());

Expand Down

0 comments on commit 48fc3c9

Please sign in to comment.