Skip to content
This repository was archived by the owner on Sep 13, 2024. It is now read-only.

Commit e05639d

Browse files
committed
Fix claim post
1 parent 30d34a6 commit e05639d

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

axie-utils/axie_utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '2.1.1'
1+
__version__ = '2.1.2'
22
__all__ = [
33
'Axies',
44
'AxieGraphQL',

axie-utils/axie_utils/claims.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ async def async_execute(self):
8585
}
8686
url = "http://game-api-pre.skymavis.com/v1/players/me/items/1/claim"
8787
try:
88-
response = self.request.post(url, headers=headers, json="")
88+
response = self.request.post(url, headers=headers)
8989
except RetryError as e:
9090
logging.critical(f"Important: Error! Executing SLP claim API call for account {self.acc_name}"
9191
f"({self.account.replace('0x', 'ronin:')}). Error {e}")
@@ -163,7 +163,7 @@ def execute(self):
163163
}
164164
url = "http://game-api-pre.skymavis.com/v1/players/me/items/1/claim"
165165
try:
166-
response = self.request.post(url, headers=headers, json="")
166+
response = self.request.post(url, headers=headers)
167167
except RetryError as e:
168168
logging.critical(f"Important: Error! Executing SLP claim API call for account {self.acc_name}"
169169
f"({self.account.replace('0x', 'ronin:')}). Error {e}")
@@ -291,7 +291,7 @@ async def async_execute(self):
291291
}
292292
url = "http://game-api-pre.skymavis.com/v1/players/me/items/1/claim"
293293
try:
294-
response = self.request.post(url, headers=headers, json="")
294+
response = self.request.post(url, headers=headers)
295295
except RetryError as e:
296296
logging.critical(f"Important: Error! Executing SLP claim API call for account {self.acc_name}"
297297
f"({self.account.replace('0x', 'ronin:')}). Error {e}")
@@ -383,7 +383,7 @@ def execute(self):
383383
}
384384
url = "http://game-api-pre.skymavis.com/v1/players/me/items/1/claim"
385385
try:
386-
response = self.request.post(url, headers=headers, json="")
386+
response = self.request.post(url, headers=headers)
387387
except RetryError as e:
388388
logging.critical(f"Important: Error! Executing SLP claim API call for account {self.acc_name}"
389389
f"({self.account.replace('0x', 'ronin:')}). Error {e}")

axie-utils/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "axie-utils"
3-
version = "2.1.1"
3+
version = "2.1.2"
44
description = "Library that provides the functionality you need to build your own axie Infinity python tools"
55
authors = ["Ferran Marin <ferran.marin.llobet@gmail.com>"]
66
license = "GNU LGPLv3"

axie-utils/tests/test_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
def test_version():
5-
assert axie_utils.__version__ == '2.1.1'
5+
assert axie_utils.__version__ == '2.1.2'
66

77

88
def test_init():

0 commit comments

Comments
 (0)