Skip to content

Commit

Permalink
Fix type of datastore entries fetch from api
Browse files Browse the repository at this point in the history
  • Loading branch information
AurelienFT authored and peterjah committed Jul 25, 2023
1 parent f7b2ad7 commit 7cc1c96
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/web3/PublicApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,11 @@ export class PublicApiClient extends BaseClient implements IPublicApiClient {
[data],
);
}
return datastoreEntries;
return datastoreEntries.map((e) => {
return {
final_value: new Uint8Array(e.final_value),
candidate_value: new Uint8Array(e.candidate_value),
};
});
}
}

0 comments on commit 7cc1c96

Please sign in to comment.