Skip to content

Commit b3fcd14

Browse files
committed
update property name
1 parent 322bd22 commit b3fcd14

File tree

8 files changed

+19
-19
lines changed

8 files changed

+19
-19
lines changed

packages/snaps-rpc-methods/src/restricted/getPreferences.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('snap_getPreferences', () => {
3636
batchCheckBalances: true,
3737
displayNftMedia: false,
3838
useNftDetection: false,
39-
usePriceCheck: true,
39+
useExternalPricingData: true,
4040
}),
4141
};
4242

@@ -59,7 +59,7 @@ describe('snap_getPreferences', () => {
5959
batchCheckBalances: true,
6060
displayNftMedia: false,
6161
useNftDetection: false,
62-
usePriceCheck: true,
62+
useExternalPricingData: true,
6363
});
6464
});
6565
});

packages/snaps-sdk/src/types/methods/get-preferences.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export type GetPreferencesParams = never;
1919
* @property batchCheckBalances - Whether to fetch balances in an aggregated manner.
2020
* @property displayNftMedia - Whether to display NFT media.
2121
* @property useNftDetection - Whether to auto-detect NFTs.
22-
* @property usePriceCheck - Whether to get token price data from an external source.
22+
* @property useExternalPricingData - Whether to get token price data from an external source.
2323
*/
2424
export type GetPreferencesResult = {
2525
locale: string;
@@ -31,5 +31,5 @@ export type GetPreferencesResult = {
3131
batchCheckBalances: boolean;
3232
displayNftMedia: boolean;
3333
useNftDetection: boolean;
34-
usePriceCheck: boolean;
34+
useExternalPricingData: boolean;
3535
};

packages/snaps-simulation/src/methods/hooks/get-preferences.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('getGetPreferencesMethodImplementation', () => {
1919
batchCheckBalances: true,
2020
displayNftMedia: true,
2121
useNftDetection: true,
22-
usePriceCheck: true,
22+
useExternalPricingData: true,
2323
});
2424
});
2525

@@ -40,7 +40,7 @@ describe('getGetPreferencesMethodImplementation', () => {
4040
batchCheckBalances: true,
4141
displayNftMedia: true,
4242
useNftDetection: true,
43-
usePriceCheck: true,
43+
useExternalPricingData: true,
4444
});
4545
});
4646

@@ -61,7 +61,7 @@ describe('getGetPreferencesMethodImplementation', () => {
6161
batchCheckBalances: true,
6262
displayNftMedia: true,
6363
useNftDetection: true,
64-
usePriceCheck: true,
64+
useExternalPricingData: true,
6565
});
6666
});
6767

@@ -82,7 +82,7 @@ describe('getGetPreferencesMethodImplementation', () => {
8282
batchCheckBalances: true,
8383
displayNftMedia: true,
8484
useNftDetection: true,
85-
usePriceCheck: true,
85+
useExternalPricingData: true,
8686
});
8787
});
8888
});

packages/snaps-simulation/src/methods/hooks/get-preferences.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import type { SimulationOptions } from '../../options';
1313
* @param options.batchCheckBalances - Whether to fetch balances in an aggregated manner.
1414
* @param options.displayNftMedia - Whether to display NFT media.
1515
* @param options.useNftDetection - Whether to auto-detect NFTs.
16-
* @param options.usePriceCheck - Whether to get token price data from an external source.
16+
* @param options.useExternalPricingData - Whether to get token price data from an external source.
1717
* @returns The implementation of the `getPreferences` hook.
1818
*/
1919
export function getGetPreferencesMethodImplementation({
@@ -26,7 +26,7 @@ export function getGetPreferencesMethodImplementation({
2626
batchCheckBalances,
2727
displayNftMedia,
2828
useNftDetection,
29-
usePriceCheck,
29+
useExternalPricingData,
3030
}: SimulationOptions) {
3131
return () => {
3232
return {
@@ -39,7 +39,7 @@ export function getGetPreferencesMethodImplementation({
3939
batchCheckBalances,
4040
displayNftMedia,
4141
useNftDetection,
42-
usePriceCheck,
42+
useExternalPricingData,
4343
};
4444
};
4545
}

packages/snaps-simulation/src/options.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('getOptions', () => {
1515
"state": null,
1616
"unencryptedState": null,
1717
"useNftDetection": true,
18-
"usePriceCheck": true,
18+
"useExternalPricingData": true,
1919
"useSecurityAlerts": true,
2020
"useSimulations": true,
2121
"useTokenDetection": true,
@@ -40,7 +40,7 @@ describe('getOptions', () => {
4040
"state": null,
4141
"unencryptedState": null,
4242
"useNftDetection": true,
43-
"usePriceCheck": true,
43+
"useExternalPricingData": true,
4444
"useSecurityAlerts": true,
4545
"useSimulations": true,
4646
"useTokenDetection": true,

packages/snaps-simulation/src/options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const SimulationOptionsStruct = object({
2929
batchCheckBalances: defaulted(optional(boolean()), true),
3030
displayNftMedia: defaulted(optional(boolean()), true),
3131
useNftDetection: defaulted(optional(boolean()), true),
32-
usePriceCheck: defaulted(optional(boolean()), true),
32+
useExternalPricingData: defaulted(optional(boolean()), true),
3333
});
3434

3535
/**
@@ -47,7 +47,7 @@ const SimulationOptionsStruct = object({
4747
* @property batchCheckBalances - Whether to fetch balances in an aggregated manner.
4848
* @property displayNftMedia - Whether to display NFT media.
4949
* @property useNftDetection - Whether to auto-detect NFTs.
50-
* @property usePriceCheck - Whether to get token price data from an external source.
50+
* @property useExternalPricingData - Whether to get token price data from an external source.
5151
*/
5252
export type SimulationUserOptions = Infer<typeof SimulationOptionsStruct>;
5353

packages/snaps-simulation/src/test-utils/options.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import type { SimulationOptions } from '../options';
1717
* @param options.batchCheckBalances - Whether to fetch balances in an aggregated manner.
1818
* @param options.displayNftMedia - Whether to display NFT media.
1919
* @param options.useNftDetection - Whether to auto-detect NFTs.
20-
* @param options.usePriceCheck - Whether to get token price data from an external source.
20+
* @param options.useExternalPricingData - Whether to get token price data from an external source.
2121
* @returns The options for the simulation.
2222
*/
2323
export function getMockOptions({
@@ -33,7 +33,7 @@ export function getMockOptions({
3333
batchCheckBalances = true,
3434
displayNftMedia = true,
3535
useNftDetection = true,
36-
usePriceCheck = true,
36+
useExternalPricingData = true,
3737
}: Partial<SimulationOptions> = {}): SimulationOptions {
3838
return {
3939
currency,
@@ -48,6 +48,6 @@ export function getMockOptions({
4848
batchCheckBalances,
4949
displayNftMedia,
5050
useNftDetection,
51-
usePriceCheck,
51+
useExternalPricingData,
5252
};
5353
}

packages/snaps-simulator/src/features/simulation/sagas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export function* initSaga({ payload }: PayloadAction<string>) {
137137
batchCheckBalances: true,
138138
displayNftMedia: true,
139139
useNftDetection: true,
140-
usePriceCheck: true,
140+
useExternalPricingData: true,
141141
}),
142142
getUnlockPromise: async () => Promise.resolve(true),
143143
showDialog: async (...args: Parameters<typeof showDialog>) =>

0 commit comments

Comments
 (0)