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

Commit

Permalink
chore: revert enum to literal
Browse files Browse the repository at this point in the history
  • Loading branch information
danroc committed May 24, 2024
1 parent f9f66c2 commit 65a534d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/btc/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { bech32 } from 'bech32';
import type { Infer } from 'superstruct';
import { string, array, enums, refine } from 'superstruct';
import { string, array, enums, refine, literal } from 'superstruct';

import { KeyringAccountStruct, BtcAccountType } from '../api';
import { object } from '../superstruct';
Expand Down Expand Up @@ -39,7 +39,7 @@ export const BtcP2wpkhAccountStruct = object({
/**
* Account type.
*/
type: enums([`${BtcAccountType.P2wpkh}`]),
type: literal(`${BtcAccountType.P2wpkh}`),

/**
* Account supported methods.
Expand Down

0 comments on commit 65a534d

Please sign in to comment.