diff --git a/CHANGELOG.md b/CHANGELOG.md index 0847e2d..6a67e64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## Unreleased +## [0.10.1] - 2024-10-31 +- Fix Faucet transaction_link to return the correct transaction link instead of transaction hash. + ## [0.10.0] - 2024-10-31 ### Changed diff --git a/cdp/__version__.py b/cdp/__version__.py index 61fb31c..1f4c4d4 100644 --- a/cdp/__version__.py +++ b/cdp/__version__.py @@ -1 +1 @@ -__version__ = "0.10.0" +__version__ = "0.10.1" diff --git a/cdp/faucet_transaction.py b/cdp/faucet_transaction.py index 8fe56ea..c93e1fa 100644 --- a/cdp/faucet_transaction.py +++ b/cdp/faucet_transaction.py @@ -67,7 +67,7 @@ def transaction_link(self) -> str: str: The transaction link. """ - return self.transaction.transaction_hash + return self.transaction.transaction_link @property def status(self) -> str: diff --git a/docs/conf.py b/docs/conf.py index 2a89824..d6ca70e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -14,7 +14,7 @@ project = 'CDP SDK' author = 'Coinbase Developer Platform' -release = '0.10.0' +release = '0.10.1' # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration diff --git a/pyproject.toml b/pyproject.toml index 35321fe..88a38ec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "cdp-sdk" -version = "0.10.0" +version = "0.10.1" description = "CDP Python SDK" readme = "README.md" authors = [{name = "John Peterson", email = "john.peterson@coinbase.com"}] @@ -141,4 +141,4 @@ line-ending = "auto" known-first-party = ["cdp"] [tool.coverage.run] -omit = ["cdp/client/*"] \ No newline at end of file +omit = ["cdp/client/*"] diff --git a/tests/test_faucet_transaction.py b/tests/test_faucet_transaction.py index 341ccab..4cab5d7 100644 --- a/tests/test_faucet_transaction.py +++ b/tests/test_faucet_transaction.py @@ -11,6 +11,7 @@ def test_faucet_tx_initialization(faucet_transaction_factory): assert isinstance(faucet_transaction, FaucetTransaction) assert faucet_transaction.transaction_hash == "0xtransactionhash" + assert faucet_transaction.transaction_link == "https://sepolia.basescan.org/tx/0xtransactionlink" assert faucet_transaction.network_id == "base-sepolia" assert faucet_transaction.address_id == "0xdestination" assert faucet_transaction.status.value == "complete"