gotchi-battler-game-logic 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/utils/contracts.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gotchi-battler-game-logic",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"axios": "^1.7.4",
|
|
21
21
|
"axios-retry": "^4.5.0",
|
|
22
22
|
"dotenv": "^16.4.5",
|
|
23
|
-
"ethers": "^
|
|
23
|
+
"ethers": "^6.13.4",
|
|
24
24
|
"json-csv": "^4.0.18"
|
|
25
25
|
}
|
|
26
26
|
}
|
package/utils/contracts.js
CHANGED
|
@@ -2,7 +2,7 @@ const { ethers } = require('ethers')
|
|
|
2
2
|
const tournamentAbi = require('../constants/tournamentManagerAbi.json')
|
|
3
3
|
|
|
4
4
|
const getTournamentContract = (address) => {
|
|
5
|
-
const provider = new ethers.
|
|
5
|
+
const provider = new ethers.JsonRpcProvider('https://polygon-rpc.com')
|
|
6
6
|
const contract = new ethers.Contract(address, tournamentAbi, provider)
|
|
7
7
|
|
|
8
8
|
return contract
|