Skip to content

Commit

Permalink
chore: update merkle root
Browse files Browse the repository at this point in the history
  • Loading branch information
xingxinglian committed Oct 16, 2023
1 parent c75fa85 commit 7f94fca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion packages/contracts/script/GameConfigInit.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import { GAME_CONFIG_KEY } from "../src/Constants.sol";
library GameConfigInit {
function initGameConfig(IWorld _world) internal {
console.log(" ========= initGameConfig");
bytes32 merkleRoot = 0x5df91eca63323dbb115087ef262075c5bcea99b8eaf95f520efb8d48ff447499;
// bytes32 merkleRoot = 0x5df91eca63323dbb115087ef262075c5bcea99b8eaf95f520efb8d48ff447499;
bytes32 merkleRoot = 0xa969691ad8c2e97e3d516e08f5b10ee4decd5f278a5f03ac4fa3532be181c854;
GameConfig.set(
_world,
GAME_CONFIG_KEY, //key
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/src/systems/MoveSystem.sol
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ contract MoveSystem is System {
uint16 y2 = i > 0 ? moveList[i - 1].y : Player.getY(_msgSender());
console.log(" step : ", i, x2, y2);
if (i > 1) {
console.log(" move : ", moveList[i - 1].x, moveList[i - 1].y);
console.log(" move : ", moveList[i].x, moveList[i].y);
}
require(
CommonUtils.isNear(moveList[i].x, x2, moveList[i].y, y2),
Expand Down
6 changes: 3 additions & 3 deletions packages/contracts/worlds.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"4242": {
"address": "0x8C0304cE496deCa5099C9bB6783cf5675aF0D3C4",
"blockNumber": 27684685
"address": "0x480f891A7b1AA7018Bb0cCb5Af558d82FA4A5501",
"blockNumber": 27733481
},
"31337": {
"address": "0x5FbDB2315678afecb367f032d93F642f64180aa3"
"address": "0x7969c5eD335650692Bc04293B07F5BF2e7A673C0"
},
"421613": {
"address": "0x2Bc1034975c3df48D6f3026802f372677844b85d",
Expand Down

0 comments on commit 7f94fca

Please sign in to comment.