Skip to content

Commit

Permalink
chore: Release 0.10.3 (#44)
Browse files Browse the repository at this point in the history
* chore: Release 0.10.3

* patch invoke contract str arg bug
  • Loading branch information
John-peterson-coinbase authored Nov 7, 2024
1 parent 06e33d5 commit 7660b83
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

## Unreleased

## [0.10.3] - 2024-11-07

### Added

- Adds `source` and `source_version` to correlation header for better observability.

### Fixed

- Fix bug in `WalletAddress` `invoke_contract` that failed to properly handle `amount` with type `str`

## [0.10.2] - 2024-11-06

### Added
Expand Down
2 changes: 1 addition & 1 deletion cdp/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.10.2"
__version__ = "0.10.3"
2 changes: 1 addition & 1 deletion cdp/wallet_address.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def invoke_contract(
normalized_amount = Decimal(amount) if amount else Decimal("0")

if amount and asset_id:
self._ensure_sufficient_balance(amount, asset_id)
self._ensure_sufficient_balance(normalized_amount, asset_id)

invocation = ContractInvocation.create(
address_id=self.address_id,
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

project = 'CDP SDK'
author = 'Coinbase Developer Platform'
release = '0.10.2'
release = '0.10.3'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "cdp-sdk"
version = "0.10.2"
version = "0.10.3"
description = "CDP Python SDK"
readme = "README.md"
authors = [{name = "John Peterson", email = "[email protected]"}]
Expand Down

0 comments on commit 7660b83

Please sign in to comment.