fixes api to use strings instead of bytes

This commit is contained in:
Will Bendick 2020-08-03 09:29:40 -07:00 committed by Gene Hoffman
parent 54802d6971
commit 0c2d22ccc4
2 changed files with 5 additions and 5 deletions

View File

@ -81,9 +81,9 @@ class WalletRpcApi:
success = await rl_user.set_user_info(
uint64(request["interval"]),
uint64(request["limit"]),
origin["parent_coin_info"].hex(),
origin["puzzle_hash"].hex(),
origin[" amount"],
origin["parent_coin_info"],
origin["puzzle_hash"],
origin["amount"],
request["admin_pubkey"]
)
return {"success": success}

View File

@ -66,8 +66,8 @@ class TestCCWallet:
val = await api_user.rl_set_user_info({'wallet_id': 2,
'interval': 2,
'limit': 1,
'origin': {"parent_coin_info": origin.parent_coin_info,
"puzzle_hash": origin.puzzle_hash,
'origin': {"parent_coin_info": origin.parent_coin_info.hex(),
"puzzle_hash": origin.puzzle_hash.hex(),
"amount": origin.amount},
'admin_pubkey': admin_pubkey})
assert val['success']