Skip to content

Commit

Permalink
appchain response to jsonstr to json object
Browse files Browse the repository at this point in the history
  • Loading branch information
ink-web3 committed Apr 9, 2024
1 parent df19140 commit 9bbfe7a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/l3staking/api_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def get_l2_stake_record(request):
)
logger.debug(l2_stake_record)
serialized = MessageToJson(l2_stake_record)
return ok_json(serialized.page)
jb = json.loads(serialized)
return ok_json(jb.page)


# @check_api_token
Expand All @@ -109,4 +110,5 @@ def get_l2_unstake_record(request):
)
logger.debug(l2_unstake_record)
serialized = MessageToJson(l2_unstake_record)
return ok_json(serialized.page)
jb = json.loads(serialized)
return ok_json(jb.page)

0 comments on commit 9bbfe7a

Please sign in to comment.