Skip to content

Commit

Permalink
fix: resolve ci issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Divya-Solulab committed Nov 20, 2024
1 parent 3d93a08 commit 073912e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions operate/services/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,7 @@ def fund_service_erc20( # pylint: disable=too-many-arguments,too-many-locals
self,
hash: str,
token: str,
token_symbol: Optional[str] = None,
token_symbol: t.Optional[str] = None,
token_decimal: int = 18,
rpc: t.Optional[str] = None,
agent_topup: t.Optional[float] = None,
Expand Down Expand Up @@ -1400,9 +1400,8 @@ def _wei_to_unit(self, wei: int) -> float: # pylint: disable=R0201
value = wei / 1e18
return f"{value:.18f}"

def _convert_to_token_units(
self, amount: int, token_decimal: int = 18
) -> str: # pylint: disable=R0201
# pylint: disable=R0201
def _convert_to_token_units(self, amount: int, token_decimal: int = 18) -> str:
"""Convert smallest unit to token's base unit."""
value = amount / 10**token_decimal
return f"{value:.{token_decimal}f}"

0 comments on commit 073912e

Please sign in to comment.