From fc25b910606dd96d514f94fac6d2d9d0f833058e Mon Sep 17 00:00:00 2001
From: Holger Nahrstaedt <holgernahrstaedt@gmx.de>
Date: Fri, 12 Mar 2021 23:15:52 +0100
Subject: [PATCH] Fix to parameter in transfer_to_vesting

---
 CHANGELOG.rst               | 4 ++++
 beem/account.py             | 3 ---
 beem/version.py             | 2 +-
 beemapi/version.py          | 2 +-
 beembase/version.py         | 2 +-
 beemgraphenebase/version.py | 2 +-
 setup.py                    | 2 +-
 7 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 01ffd4e8..11425ceb 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -1,5 +1,9 @@
 Changelog
 ========
+0.24.22
+-------
+* Fix to parameter in transfer_to_vesting
+
 0.24.21
 -------
 * Fix bug in ecda (convert mpz into int when not supported)
diff --git a/beem/account.py b/beem/account.py
index 7cc7c0fc..bc8488b2 100644
--- a/beem/account.py
+++ b/beem/account.py
@@ -2958,9 +2958,6 @@ class Account(BlockchainObject):
         amount = self._check_amount(amount, self.blockchain.token_symbol)
         if to is None and skip_account_check:
             to = self["name"]  # powerup on the same account
-        else:
-            to = self
-
         if not skip_account_check:
             to = Account(to, blockchain_instance=self.blockchain)
         to_name = extract_account_name(to)
diff --git a/beem/version.py b/beem/version.py
index 8161bb51..e3053201 100644
--- a/beem/version.py
+++ b/beem/version.py
@@ -1,2 +1,2 @@
 """THIS FILE IS GENERATED FROM beem SETUP.PY."""
-version = '0.24.21'
+version = '0.24.22'
diff --git a/beemapi/version.py b/beemapi/version.py
index 8161bb51..e3053201 100644
--- a/beemapi/version.py
+++ b/beemapi/version.py
@@ -1,2 +1,2 @@
 """THIS FILE IS GENERATED FROM beem SETUP.PY."""
-version = '0.24.21'
+version = '0.24.22'
diff --git a/beembase/version.py b/beembase/version.py
index 8161bb51..e3053201 100644
--- a/beembase/version.py
+++ b/beembase/version.py
@@ -1,2 +1,2 @@
 """THIS FILE IS GENERATED FROM beem SETUP.PY."""
-version = '0.24.21'
+version = '0.24.22'
diff --git a/beemgraphenebase/version.py b/beemgraphenebase/version.py
index 8161bb51..e3053201 100644
--- a/beemgraphenebase/version.py
+++ b/beemgraphenebase/version.py
@@ -1,2 +1,2 @@
 """THIS FILE IS GENERATED FROM beem SETUP.PY."""
-version = '0.24.21'
+version = '0.24.22'
diff --git a/setup.py b/setup.py
index f5358360..44402915 100755
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ except LookupError:
     ascii = codecs.lookup('ascii')
     codecs.register(lambda name, enc=ascii: {True: enc}.get(name == 'mbcs'))
 
-VERSION = '0.24.21'
+VERSION = '0.24.22'
 
 tests_require = ['mock >= 2.0.0', 'pytest', 'pytest-mock', 'parameterized']
 
-- 
GitLab