From a525c14ea50fe7ea9475a8a259b4868c4d7401ca Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Thu, 12 Oct 2023 17:28:12 -0400 Subject: [PATCH 1/2] fix: add missing max coin amount in select coin call --- app/core/climate_wallet/wallet.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/core/climate_wallet/wallet.py b/app/core/climate_wallet/wallet.py index 9c0b963..3304af3 100644 --- a/app/core/climate_wallet/wallet.py +++ b/app/core/climate_wallet/wallet.py @@ -46,6 +46,7 @@ get_wallet_info_by_id, ) from app.logger import logger +from chia.consensus.default_constants import DEFAULT_CONSTANTS @dataclasses.dataclass @@ -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!") @@ -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!") From 7747c42c3ec162a21eb5345b193e76b704d8833d Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Thu, 12 Oct 2023 17:29:29 -0400 Subject: [PATCH 2/2] chore: bump to 1.0.33 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 09a9bd9..8104641 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 ", "Chia Network Inc "]