Skip to content

Commit

Permalink
fix guess the number definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Oct 11, 2024
1 parent 21e2aa9 commit bc3d3ba
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
8 changes: 6 additions & 2 deletions packages/types/src/interfaces/integriteeWorker/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
11 changes: 7 additions & 4 deletions packages/types/src/interfaces/integriteeWorker/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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 */
Expand Down

0 comments on commit bc3d3ba

Please sign in to comment.