mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-12-01 20:05:43 +03:00
fixes api to use strings instead of bytes
This commit is contained in:
parent
54802d6971
commit
0c2d22ccc4
@ -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}
|
||||
|
@ -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']
|
||||
|
Loading…
Reference in New Issue
Block a user