Skip to content

Commit 27d71b4

Browse files
committed
refactor: rename const, remove export
1 parent 2a85475 commit 27d71b4

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

packages/snaps-simulation/src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ export const DEFAULT_JSON_RPC_ENDPOINT = 'https://cloudflare-eth.com/';
3030
/**
3131
* The types of inputs that can be used in the `typeInField` interface action.
3232
*/
33-
export const TypeableInputs = ['Input', 'AddressInput'];
33+
export const TYPEABLE_INPUTS = ['Input', 'AddressInput'];

packages/snaps-simulation/src/interface.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import deepEqual from 'fast-deep-equal';
2727
import { type SagaIterator } from 'redux-saga';
2828
import { call, put, select, take } from 'redux-saga/effects';
2929

30-
import { TypeableInputs } from './constants';
30+
import { TYPEABLE_INPUTS } from './constants';
3131
import type { RootControllerMessenger } from './controllers';
3232
import { getFileSize, getFileToUpload } from './files';
3333
import type { Interface, RunSagaFunction } from './store';
@@ -537,8 +537,8 @@ export async function typeInField(
537537
);
538538

539539
assert(
540-
TypeableInputs.includes(result.element.type),
541-
`Expected an element of type ${formatTypeErrorMessage(TypeableInputs)}, but found "${result.element.type}".`,
540+
TYPEABLE_INPUTS.includes(result.element.type),
541+
`Expected an element of type ${formatTypeErrorMessage(TYPEABLE_INPUTS)}, but found "${result.element.type}".`,
542542
);
543543

544544
const newValue = processInputValue(value, result.element);
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
export * from './controller';
2-
export * from '../utils/errors';
32
export * from './options';
43
export * from './server';

0 commit comments

Comments
 (0)