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

Commit

Permalink
fix: use method name as type
Browse files Browse the repository at this point in the history
  • Loading branch information
danroc committed Aug 25, 2023
1 parent ff40fd1 commit 37a93de
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/internal/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { KeyringEvent } from '../events';
import { UuidStruct } from '../utils';

export const AccountCreatedEventStruct = object({
method: literal<string>(KeyringEvent.AccountCreated),
method: literal(`${KeyringEvent.AccountCreated}`),
params: object({
/**
* New account object.
Expand All @@ -16,7 +16,7 @@ export const AccountCreatedEventStruct = object({
});

export const AccountUpdatedEventStruct = object({
method: literal<string>(KeyringEvent.AccountUpdated),
method: literal(`${KeyringEvent.AccountUpdated}`),
params: object({
/**
* Updated account object.
Expand All @@ -26,7 +26,7 @@ export const AccountUpdatedEventStruct = object({
});

export const AccountDeletedEventStruct = object({
method: literal<string>(KeyringEvent.AccountDeleted),
method: literal(`${KeyringEvent.AccountDeleted}`),
params: object({
/**
* Deleted account ID.
Expand All @@ -36,7 +36,7 @@ export const AccountDeletedEventStruct = object({
});

export const RequestApprovedEventStruct = object({
method: literal<string>(KeyringEvent.RequestApproved),
method: literal(`${KeyringEvent.RequestApproved}`),
params: object({
/**
* Request ID.
Expand All @@ -51,7 +51,7 @@ export const RequestApprovedEventStruct = object({
});

export const RequestRejectedEventStruct = object({
method: literal<string>(KeyringEvent.RequestRejected),
method: literal(`${KeyringEvent.RequestRejected}`),
params: object({
/**
* Request ID.
Expand Down

0 comments on commit 37a93de

Please sign in to comment.