Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
update comment about executor's execute params
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeseese committed Feb 5, 2021
1 parent 14529cf commit d77e8d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/chains/filecoin/filecoin/src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ export default class FilecoinProvider
async _requestRaw<Method extends keyof FilecoinApi = keyof FilecoinApi>(
payload: JsonRpc.Request<FilecoinApi>
) {
// I'm not entirely sure why I need the `as [string]`... but it seems to work.
// The `as any` is needed here because of this hackery of appending the
// JSON `id` no longer fits within the strictly typed `execute` `params`
// argument
const result = await this.#executor.execute(this.#api, payload.method, [
...(payload.params || []),
payload.id
Expand Down

0 comments on commit d77e8d0

Please sign in to comment.