From 549ac26c374f1103408b84b7f7101134ce59cc25 Mon Sep 17 00:00:00 2001 From: Joakim Nyman Date: Thu, 14 Oct 2021 19:13:50 +0200 Subject: [PATCH 1/2] adapted to registery changes in py-scale-codec (cherry picked from commit 877e163dd6fcff2066c32d1e5282f3fb2b49a79c) --- payctl/payctl.py | 2 +- payctl/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/payctl/payctl.py b/payctl/payctl.py index f27cb2d..55f8e08 100755 --- a/payctl/payctl.py +++ b/payctl/payctl.py @@ -110,7 +110,7 @@ def cmd_pay(args, config): payment_info = substrate.get_payment_info(call=call, keypair=keypair) account_info = get_account_info(substrate, get_config(args, config, 'signingaccount')) - expected_fees = payment_info['partialFee'] + expected_fees = payment_info['partial_fee'] free_balance = account_info['data']['free'] existential_deposit = get_existential_deposit(substrate) diff --git a/payctl/utils.py b/payctl/utils.py index 559902c..c7d6e9b 100644 --- a/payctl/utils.py +++ b/payctl/utils.py @@ -101,7 +101,7 @@ def get_eras_payment_info_filtered(substrate, start, end, accounts=[], only_uncl for era in eras_payment_info: for accountId in accounts: if accountId in eras_payment_info[era]: - if era in accounts_ledger[accountId]['claimedRewards']: + if era in accounts_ledger[accountId]['claimed_rewards']: claimed = True else: claimed = False From b12051336c281bdb12b86c73d905de13ea3a5073 Mon Sep 17 00:00:00 2001 From: Joakim Nyman Date: Fri, 22 Oct 2021 20:36:17 +0200 Subject: [PATCH 2/2] reverted partialFee --- payctl/payctl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payctl/payctl.py b/payctl/payctl.py index 55f8e08..f27cb2d 100755 --- a/payctl/payctl.py +++ b/payctl/payctl.py @@ -110,7 +110,7 @@ def cmd_pay(args, config): payment_info = substrate.get_payment_info(call=call, keypair=keypair) account_info = get_account_info(substrate, get_config(args, config, 'signingaccount')) - expected_fees = payment_info['partial_fee'] + expected_fees = payment_info['partialFee'] free_balance = account_info['data']['free'] existential_deposit = get_existential_deposit(substrate)