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!") 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 "]