Skip to content

Commit

Permalink
fix field
Browse files Browse the repository at this point in the history
  • Loading branch information
dhvanipa committed May 14, 2024
1 parent d35e9df commit a1d9061
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/hardhat/contracts/Game.sol
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ contract Game is IOptionalSystemHook {
getEntityFromPlayer(msgSender) != bytes32(0),
"You Must First Spawn An Avatar In Biome-1 To Play The Game."
);
emit GameNotif(string.concat(Strings.toHexString(msgSender), " has joined the game"));
emit GameNotif(address(0), string.concat(Strings.toHexString(msgSender), " has joined the game"));
}

function onAfterCallSystem(
Expand All @@ -78,7 +78,7 @@ contract Game is IOptionalSystemHook {
(bool sent, ) = msgSender.call{ value: address(this).balance }("");
require(sent, "Failed to send Ether");

emit GameNotif(string.concat(Strings.toHexString(winner), " won the game!"));
emit GameNotif(address(0), string.concat(Strings.toHexString(winner), " won the game!"));

return;
}
Expand Down
6 changes: 6 additions & 0 deletions packages/nextjs/contracts/deployedContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ const deployedContracts = {
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "player",
type: "address",
},
{
indexed: false,
internalType: "string",
Expand Down

0 comments on commit a1d9061

Please sign in to comment.