Skip to content

Commit

Permalink
Merge pull request #123 from Chia-Network/develop
Browse files Browse the repository at this point in the history
release: 1.0.33 - add max coin amount to select coin call
  • Loading branch information
MichaelTaylor3D authored Oct 12, 2023
2 parents 4bfe0f4 + 7db0395 commit 1a2260d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/core/climate_wallet/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
get_wallet_info_by_id,
)
from app.logger import logger
from chia.consensus.default_constants import DEFAULT_CONSTANTS


@dataclasses.dataclass
Expand Down Expand Up @@ -288,6 +289,7 @@ async def _create_client_transaction(
coins: List[Coin] = await self.wallet_client.select_coins(
amount=amount,
wallet_id=wallet_id,
max_coin_amount=DEFAULT_CONSTANTS.MAX_COIN_AMOUNT,
)
if not len(coins):
raise ValueError(f"Insufficient balance!")
Expand Down Expand Up @@ -377,6 +379,7 @@ async def send_tokenization_transaction(
coins: List[Coin] = await self.wallet_client.select_coins(
amount=amount + fee,
wallet_id=wallet_id,
max_coin_amount=DEFAULT_CONSTANTS.MAX_COIN_AMOUNT,
)
if not len(coins):
raise ValueError(f"Insufficient balance!")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "Chia Climate Token Driver"
version = "1.0.32"
version = "1.0.33"
description = "https://github.com/Chia-Network/climate-token-driver"
authors = ["Harry Hsu <[email protected]>",
"Chia Network Inc <[email protected]>"]
Expand Down

0 comments on commit 1a2260d

Please sign in to comment.