From c49856a480bf3364ed9cd31378664298eb1abbd5 Mon Sep 17 00:00:00 2001 From: Lorenz Herzberger Date: Mon, 30 Jan 2023 18:00:37 +0100 Subject: [PATCH] blackified and updated version and changelog Signed-off-by: Lorenz Herzberger --- CHANGELOG.md | 3 +++ planetmint/lib.py | 1 - planetmint/version.py | 4 ++-- tests/web/test_blocks.py | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 38b118f..1a30970 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,9 @@ For reference, the possible headings are: * **Known Issues** * **Notes** +## [2.2.0] - 2023-31-01 +* **Changed** standardized blocks API + ## [2.1.0] - 2023-26-01 * **Added** validation for compose and decompose transaction types diff --git a/planetmint/lib.py b/planetmint/lib.py index e4be947..f51ef37 100644 --- a/planetmint/lib.py +++ b/planetmint/lib.py @@ -335,7 +335,6 @@ class Planetmint(object): return block - def get_block_containing_tx(self, txid): """Retrieve the list of blocks (block ids) containing a transaction with transaction id `txid` diff --git a/planetmint/version.py b/planetmint/version.py index 8100550..da6da1c 100644 --- a/planetmint/version.py +++ b/planetmint/version.py @@ -3,8 +3,8 @@ # SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) # Code is Apache-2.0 and docs are CC-BY-4.0 -__version__ = "2.1.0" -__short_version__ = "2.1" +__version__ = "2.2.0" +__short_version__ = "2.2" # Supported Tendermint versions __tm_supported_versions__ = ["0.34.15"] diff --git a/tests/web/test_blocks.py b/tests/web/test_blocks.py index b8cf0c6..e35e150 100644 --- a/tests/web/test_blocks.py +++ b/tests/web/test_blocks.py @@ -82,4 +82,4 @@ def test_get_block_by_transaction_id(client): print(block_res.json) tx_id = block_res.json["transaction_ids"][0] res = client.get(BLOCKS_ENDPOINT + "?transaction_id=" + tx_id) - assert res.json["height"] == 3 \ No newline at end of file + assert res.json["height"] == 3