diff --git a/packages/hardhat/contracts/Game.sol b/packages/hardhat/contracts/Game.sol index b18f8376..5fdb6cea 100644 --- a/packages/hardhat/contracts/Game.sol +++ b/packages/hardhat/contracts/Game.sol @@ -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( @@ -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; } diff --git a/packages/nextjs/contracts/deployedContracts.ts b/packages/nextjs/contracts/deployedContracts.ts index bc3960ba..0218dea0 100644 --- a/packages/nextjs/contracts/deployedContracts.ts +++ b/packages/nextjs/contracts/deployedContracts.ts @@ -74,6 +74,12 @@ const deployedContracts = { { anonymous: false, inputs: [ + { + indexed: false, + internalType: "address", + name: "player", + type: "address", + }, { indexed: false, internalType: "string",