Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
herbig committed Feb 16, 2023
1 parent 47cdd8e commit 88d9b0d
Show file tree
Hide file tree
Showing 6 changed files with 302 additions and 200 deletions.
4 changes: 2 additions & 2 deletions contracts/ConnectFour/ConnectFour.sol
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ contract ConnectFour {
* @param _gameId id of game
* @param column selected column for move
*/
function makeMove(
function makeMoveById(
uint8 _gameId,
uint8 column
) public gameOver(_gameId) validColumn(column) {
Expand Down Expand Up @@ -143,7 +143,7 @@ contract ConnectFour {
function makeMove(uint8 _column) external {
uint id = getGameIdFromAddress[msg.sender];
require(id != 0, "Not currently playing.");
makeMove(uint8(id), _column);
makeMoveById(uint8(id), _column);
}

function setGameIdFromAddress(Game memory _game, uint _gameId) private {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"chai": "^4.3.7",
"dotenv": "^16.0.3",
"ethers": "^5.7.1",
"hardhat": "^2.12.4",
"hardhat": "^2.12.7",
"hardhat-deploy": "^0.11.22",
"hardhat-deploy-ethers": "0.3.0-beta.13",
"hardhat-gas-reporter": "^1.0.9",
Expand All @@ -55,4 +55,4 @@
"dependencies": {
"@openzeppelin/contracts-upgradeable": "^4.8.0"
}
}
}
Loading

0 comments on commit 88d9b0d

Please sign in to comment.