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

Commit

Permalink
Fix claim post
Browse files Browse the repository at this point in the history
  • Loading branch information
FerranMarin committed May 30, 2022
1 parent 30d34a6 commit e05639d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion axie-utils/axie_utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '2.1.1'
__version__ = '2.1.2'
__all__ = [
'Axies',
'AxieGraphQL',
Expand Down
8 changes: 4 additions & 4 deletions axie-utils/axie_utils/claims.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ async def async_execute(self):
}
url = "http://game-api-pre.skymavis.com/v1/players/me/items/1/claim"
try:
response = self.request.post(url, headers=headers, json="")
response = self.request.post(url, headers=headers)
except RetryError as e:
logging.critical(f"Important: Error! Executing SLP claim API call for account {self.acc_name}"
f"({self.account.replace('0x', 'ronin:')}). Error {e}")
Expand Down Expand Up @@ -163,7 +163,7 @@ def execute(self):
}
url = "http://game-api-pre.skymavis.com/v1/players/me/items/1/claim"
try:
response = self.request.post(url, headers=headers, json="")
response = self.request.post(url, headers=headers)
except RetryError as e:
logging.critical(f"Important: Error! Executing SLP claim API call for account {self.acc_name}"
f"({self.account.replace('0x', 'ronin:')}). Error {e}")
Expand Down Expand Up @@ -291,7 +291,7 @@ async def async_execute(self):
}
url = "http://game-api-pre.skymavis.com/v1/players/me/items/1/claim"
try:
response = self.request.post(url, headers=headers, json="")
response = self.request.post(url, headers=headers)
except RetryError as e:
logging.critical(f"Important: Error! Executing SLP claim API call for account {self.acc_name}"
f"({self.account.replace('0x', 'ronin:')}). Error {e}")
Expand Down Expand Up @@ -383,7 +383,7 @@ def execute(self):
}
url = "http://game-api-pre.skymavis.com/v1/players/me/items/1/claim"
try:
response = self.request.post(url, headers=headers, json="")
response = self.request.post(url, headers=headers)
except RetryError as e:
logging.critical(f"Important: Error! Executing SLP claim API call for account {self.acc_name}"
f"({self.account.replace('0x', 'ronin:')}). Error {e}")
Expand Down
2 changes: 1 addition & 1 deletion axie-utils/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "axie-utils"
version = "2.1.1"
version = "2.1.2"
description = "Library that provides the functionality you need to build your own axie Infinity python tools"
authors = ["Ferran Marin <ferran.marin.llobet@gmail.com>"]
license = "GNU LGPLv3"
Expand Down
2 changes: 1 addition & 1 deletion axie-utils/tests/test_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


def test_version():
assert axie_utils.__version__ == '2.1.1'
assert axie_utils.__version__ == '2.1.2'


def test_init():
Expand Down

0 comments on commit e05639d

Please sign in to comment.