We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab592d3 commit cc4a0b8Copy full SHA for cc4a0b8
governance/xc_admin/packages/xc_admin_common/src/programs/core/core_adapter.ts
@@ -332,11 +332,11 @@ export class PythCoreAdapter implements ProgramAdapter {
332
/**
333
* Sort object by keys
334
*/
335
- private sortObjectByKeys<T extends Record<string, any>>(obj: T): T {
+ private sortObjectByKeys<T extends Record<string, unknown>>(obj: T): T {
336
const sortedObj = {} as T;
337
const keys = Object.keys(obj).sort();
338
for (const key of keys) {
339
- sortedObj[key as keyof T] = obj[key];
+ sortedObj[key as keyof T] = obj[key] as T[keyof T];
340
}
341
return sortedObj;
342
0 commit comments