Skip to content

Commit

Permalink
fix legacy storage rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
XY-Wang committed Dec 20, 2024
1 parent d28c38a commit a8d0217
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/server/src/services/networking/client/archive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,8 @@ export class ArchiveClient extends EventEmitter implements ApiClient {

async #getEvents(hash: string) {
try {
const response = await this.#request<
{ result: [{ key: string; value: string }] },
[hash: string, items: [{ key: string; type: string }], null]
>('archive_unstable_storage', [hash, [{ key: this.ctx.events.key, type: 'value' }], null])
const eventsData = await this.getStorage(this.ctx.events.key, hash)

const eventsData = response.result?.[0]?.value
if (!eventsData) {
return []
}
Expand Down

0 comments on commit a8d0217

Please sign in to comment.