Skip to content

Commit

Permalink
[integriteeWorker] fix parentchainsInfo getter
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Oct 26, 2024
1 parent fda06bc commit 9e9cb22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/worker-api/src/integriteeWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type {
IntegriteeTrustedCallSigned,
IntegriteeGetter,
GuessTheNumberInfo,
GuessTheNumberTrustedCall, GuessTheNumberPublicGetter, GuessTheNumberTrustedGetter, AttemptsArg,
GuessTheNumberTrustedCall, GuessTheNumberPublicGetter, GuessTheNumberTrustedGetter, AttemptsArg, ParentchainsInfo,
} from '@encointer/types';
import {
type ISubmittableGetter,
Expand Down Expand Up @@ -46,11 +46,11 @@ export class IntegriteeWorker extends Worker {
return await submittableTrustedGetter<IntegriteeWorker, AccountInfo>(this, 'account_info', accountOrPubKey, trustedGetterArgs, asString(accountOrPubKey), 'AccountInfo');
}

public parentchainsInfoGetter(shard: string): SubmittableGetter<IntegriteeWorker, GuessTheNumberInfo> {
public parentchainsInfoGetter(shard: string): SubmittableGetter<IntegriteeWorker, ParentchainsInfo> {
const publicGetterArgs = {
shard: shard,
}
return submittablePublicGetter<IntegriteeWorker, GuessTheNumberInfo>(this, 'parentchains_info', publicGetterArgs, null, 'ParentchainsInfo');
return submittablePublicGetter<IntegriteeWorker, ParentchainsInfo>(this, 'parentchains_info', publicGetterArgs, null, 'ParentchainsInfo');
}

public guessTheNumberInfoGetter(shard: string): SubmittableGetter<IntegriteeWorker, GuessTheNumberInfo> {
Expand Down

0 comments on commit 9e9cb22

Please sign in to comment.