Skip to content

Commit

Permalink
Merge 1bb4e28 into e16f79c
Browse files Browse the repository at this point in the history
  • Loading branch information
meevee98 committed Mar 1, 2024
2 parents e16f79c + 1bb4e28 commit 5dec9b7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions neo3/api/noderpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -930,10 +930,11 @@ async def find_states(
response = await self._do_post(
"findstorage", [contract_hash, _prefix, start]
)
for pair in response["results"]:
key = base64.b64decode(pair["key"])
value = base64.b64decode(pair["value"])
yield key, value
if response["results"]:
for pair in response["results"]:
key = base64.b64decode(pair["key"])
value = base64.b64decode(pair["value"])
yield key, value
if not response["truncated"]:
break
start = response["next"]
Expand Down

0 comments on commit 5dec9b7

Please sign in to comment.