Skip to content

Commit d853ad2

Browse files
authored
go (#2265)
1 parent bf18253 commit d853ad2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

governance/xc_admin/packages/xc_admin_common/src/deterministic_oracle_accounts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ export async function findDetermisticAccountAddress(
6464
symbol: string,
6565
cluster: PythCluster
6666
): Promise<[PublicKey, string]> {
67-
const seed: string = getSeed(type, symbol);
67+
const seed: string = getSeed(type, symbol).slice(0, 32);
6868
const address: PublicKey = await PublicKey.createWithSeed(
6969
PRICE_FEED_OPS_KEY,
70-
seed.slice(32),
70+
seed,
7171
getPythProgramKeyForCluster(cluster)
7272
);
7373
return [address, seed];

0 commit comments

Comments
 (0)