Skip to content

Commit

Permalink
add arb indexerUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
TiyoSheng committed Dec 14, 2023
1 parent 7ded1b9 commit 9e6446a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/client/src/mud/supportedChains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { sepolia, arbitrumGoerli } from 'viem/chains'

arbitrumGoerli.rpcUrls.default.http = ['https://arbitrum-goerli.publicnode.com'];
arbitrumGoerli.rpcUrls.default.webSocket = [ 'wss://arbitrum-goerli.publicnode.com'];
arbitrumGoerli.indexerUrl = [ 'https://indexer_arb.0xmssp.xyz'];

const testnet = {
name: "Mississippi testnet",
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/pages/game/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const Game = () => {
let lastBattleTime = playerItem.lastBattleTime
let diff = now - lastBattleTime
let diffHp = diff * (playerItem.maxHp / 1000)
playerItem.hp = playerItem.hp + diffHp
playerItem.hp = Math.floor(playerItem.hp + diffHp)
if (playerItem.hp > playerItem.maxHp) {
playerItem.hp = playerItem.maxHp
}
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/worlds.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"blockNumber": 1505273
},
"31337": {
"address": "0x7bd472fc101d3a7caf3064b7c5788965cb34685f"
"address": "0xe233198863b75acc6e1af43daff3f5918e35875e"
},
"33784": {
"address": "0x6e9474e9c83676b9a71133ff96db43e7aa0a4342",
Expand Down

0 comments on commit 9e6446a

Please sign in to comment.