guibescos 10 月之前
父节点
当前提交
d853ad2c12
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      governance/xc_admin/packages/xc_admin_common/src/deterministic_oracle_accounts.ts

+ 2 - 2
governance/xc_admin/packages/xc_admin_common/src/deterministic_oracle_accounts.ts

@@ -64,10 +64,10 @@ export async function findDetermisticAccountAddress(
   symbol: string,
   cluster: PythCluster
 ): Promise<[PublicKey, string]> {
-  const seed: string = getSeed(type, symbol);
+  const seed: string = getSeed(type, symbol).slice(0, 32);
   const address: PublicKey = await PublicKey.createWithSeed(
     PRICE_FEED_OPS_KEY,
-    seed.slice(32),
+    seed,
     getPythProgramKeyForCluster(cluster)
   );
   return [address, seed];