Skip to content

Commit

Permalink
feat: 🧪 Initial skeleton
Browse files Browse the repository at this point in the history
New test for testing erc20 interactions, explicitly set evmVersion to Shanghai, incrementing solc
  • Loading branch information
timbrinded committed Apr 25, 2024
1 parent 0469a8d commit 2a6cd9d
Show file tree
Hide file tree
Showing 5 changed files with 247 additions and 89 deletions.
22 changes: 22 additions & 0 deletions test/contracts/src/ERC20Sample.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract ERC20Sample is ERC20, ERC20Burnable, Ownable {
constructor()
ERC20("SampleToken", "SAM")
Ownable()
{}

function greeter() public view returns (string memory) {
return "Hello, ERC20!";
}

function mint(address to, uint256 amount) public onlyOwner {
_mint(to, amount);
}

}
3 changes: 2 additions & 1 deletion test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@moonwall/cli": "^5.1.4",
"@moonwall/util": "^5.1.4",
"@openzeppelin/contracts": "4.9.6",
"@openzeppelin/contracts-upgradeable": "4.9.6",
"@polkadot/api": "10.12.6",
"@polkadot/api-augment": "10.12.6",
"@polkadot/api-derive": "10.12.6",
Expand All @@ -46,7 +47,7 @@
"randomness": "1.6.8",
"rlp": "3.0.0",
"semver": "7.6.0",
"solc": "0.8.21",
"solc": "0.8.24",
"tsx": "4.7.2",
"viem": "2.9.9",
"vitest": "1.4.0",
Expand Down
Loading

0 comments on commit 2a6cd9d

Please sign in to comment.