Skip to content

Commit

Permalink
TicTacToe Contract (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamdiallam authored Oct 16, 2024
1 parent edf48a6 commit d642dd4
Show file tree
Hide file tree
Showing 9 changed files with 634 additions and 245 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,5 @@ go.work.sum

.DS_Store

# vendored packages
lib

/main
dist/
3 changes: 2 additions & 1 deletion contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
src = "src"
out = "out"
libs = ["lib"]
evm_version = "cancun"

fs_permissions = [
{ access='read-write', path='../generated' },
Expand All @@ -11,4 +12,4 @@ remappings = [
"@contracts-bedrock/=lib/optimism/packages/contracts-bedrock/src/",
"@solady/=lib/optimism/packages/contracts-bedrock/lib/solady/src/",
"@openzeppelin/contracts=lib/optimism/packages/contracts-bedrock/lib/openzeppelin-contracts/contracts"
]
]
2 changes: 1 addition & 1 deletion contracts/lib/optimism
Submodule optimism updated 679 files
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
pragma solidity ^0.8.13;

import {Script, console} from "forge-std/Script.sol";
import {TicTacToe} from "../src/TicTacToe.sol";
import {TicTacToe} from "../../src/tictactoe/TicTacToe.sol";

contract DeployScript is Script {
function setUp() public {}

function run() public {
vm.broadcast();
new TicTacToe();
TicTacToe game = new TicTacToe{ salt: "tictactoe" }();
console.log("Deployed at: ", address(game));
}
}
136 changes: 0 additions & 136 deletions contracts/src/TicTacToe.sol

This file was deleted.

Loading

0 comments on commit d642dd4

Please sign in to comment.