From c96db8f23b5eb021ca4041fca45e850edfe53fc2 Mon Sep 17 00:00:00 2001 From: Will Bendick Date: Mon, 10 Aug 2020 16:15:39 -0700 Subject: [PATCH] fixes types --- src/rpc/wallet_rpc_api.py | 2 +- src/wallet/rl_wallet/rl_wallet.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rpc/wallet_rpc_api.py b/src/rpc/wallet_rpc_api.py index f828fe6083..e84ec02207 100644 --- a/src/rpc/wallet_rpc_api.py +++ b/src/rpc/wallet_rpc_api.py @@ -369,7 +369,7 @@ class WalletRpcApi: ) return {"success": success, "id": rl_admin.wallet_info.id, - "type": rl_admin.wallet_info.type.name, + "type": rl_admin.wallet_info.type, "origin": rl_admin.rl_info.rl_origin, "pubkey": rl_admin.rl_info.admin_pubkey.hex()} except Exception as e: diff --git a/src/wallet/rl_wallet/rl_wallet.py b/src/wallet/rl_wallet/rl_wallet.py index 2438b43d95..aba661c872 100644 --- a/src/wallet/rl_wallet/rl_wallet.py +++ b/src/wallet/rl_wallet/rl_wallet.py @@ -79,7 +79,7 @@ class RLWallet(AbstractWallet): wallet_info: Optional[ WalletInfo ] = await wallet_state_manager.user_store.create_wallet( - "RL Admin", WalletType.RATE_LIMITED, info_as_string + "RL Admin", WalletType.RATE_LIMITED.value, info_as_string ) if wallet_info is None: raise Exception("wallet_info is None") @@ -90,7 +90,7 @@ class RLWallet(AbstractWallet): unused, token_bytes(), pubkey_bytes, - WalletType.RATE_LIMITED, + WalletType.RATE_LIMITED.value, wallet_info.id, ) ]