Skip to content

Commit 00664d8

Browse files
revert: remove unnecessary Group.py checksum changes
Co-authored-by: Cursor <[email protected]>
1 parent 50c27d7 commit 00664d8

File tree

1 file changed

+0
-9
lines changed
  • src/story_protocol_python_sdk/resources

1 file changed

+0
-9
lines changed

src/story_protocol_python_sdk/resources/Group.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,6 @@ def register_group_and_attach_license_and_add_ips(
404404
:return dict: A dictionary with the transaction hash and group ID.
405405
"""
406406
try:
407-
# Convert addresses to checksum format for consistency
408-
group_pool = self.web3.to_checksum_address(group_pool)
409-
ip_ids = [self.web3.to_checksum_address(ip_id) for ip_id in ip_ids]
410-
411407
if not self.web3.is_address(group_pool):
412408
raise ValueError(f'Group pool address "{group_pool}" is invalid.')
413409

@@ -565,11 +561,6 @@ def claim_rewards(
565561
if not self.web3.is_address(ip_id):
566562
raise ValueError(f"Invalid member IP ID: {ip_id}")
567563

568-
# Convert addresses to checksum format for consistency
569-
group_ip_id = self.web3.to_checksum_address(group_ip_id)
570-
currency_token = self.web3.to_checksum_address(currency_token)
571-
member_ip_ids = [self.web3.to_checksum_address(ip_id) for ip_id in member_ip_ids]
572-
573564
claim_reward_param = {
574565
"groupIpId": group_ip_id,
575566
"token": currency_token,

0 commit comments

Comments
 (0)