From bc3d3bae0cb7303bab49905da67e0fddc00323b5 Mon Sep 17 00:00:00 2001 From: Christian Langenbacher Date: Fri, 11 Oct 2024 13:18:49 +0200 Subject: [PATCH] fix guess the number definitions --- .../src/interfaces/integriteeWorker/definitions.ts | 8 ++++++-- .../types/src/interfaces/integriteeWorker/types.ts | 11 +++++++---- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/packages/types/src/interfaces/integriteeWorker/definitions.ts b/packages/types/src/interfaces/integriteeWorker/definitions.ts index 7a7e8f03..afb2df8f 100644 --- a/packages/types/src/interfaces/integriteeWorker/definitions.ts +++ b/packages/types/src/interfaces/integriteeWorker/definitions.ts @@ -194,10 +194,14 @@ export default { BalanceUnshieldArgs: '(AccountId, AccountId, BalanceType, ShardIdentifier)', BalanceSetBalanceArgs: '(AccountId, AccountId, BalanceType, BalanceType)', GuessTheNumberPublicGetter: { - guess_the_number_info: 'null', + _enum: { + guess_the_number_info: null, + } }, GuessTheNumberTrustedGetter: { - attempts: 'AttemptsArg' + _enum: { + attempts: 'AttemptsArg' + } }, AttemptsArg: { origin: 'AccountId' diff --git a/packages/types/src/interfaces/integriteeWorker/types.ts b/packages/types/src/interfaces/integriteeWorker/types.ts index 38d15284..b1ee5e04 100644 --- a/packages/types/src/interfaces/integriteeWorker/types.ts +++ b/packages/types/src/interfaces/integriteeWorker/types.ts @@ -40,8 +40,9 @@ export interface GuessTheNumberInfo extends Struct { } /** @name GuessTheNumberPublicGetter */ -export interface GuessTheNumberPublicGetter extends Struct { - readonly guess_the_number_info: null; +export interface GuessTheNumberPublicGetter extends Enum { + readonly isGuessTheNumberInfo: boolean; + readonly type: 'GuessTheNumberInfo'; } /** @name GuessTheNumberSetWinningsArgs */ @@ -59,8 +60,10 @@ export interface GuessTheNumberTrustedCall extends Enum { } /** @name GuessTheNumberTrustedGetter */ -export interface GuessTheNumberTrustedGetter extends Struct { - readonly attempts: AttemptsArg; +export interface GuessTheNumberTrustedGetter extends Enum { + readonly isAttempts: boolean; + readonly asAttempts: AttemptsArg; + readonly type: 'Attempts'; } /** @name GuessType */