Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: 1.0.33 - add max coin amount to select coin call #123

Merged
merged 3 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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