[explorer] Fix parsing of some Pyth transactions. (#29943)
Fix a couple of bugs
This commit is contained in:
parent
005dc96bc5
commit
c606d9b167
|
@ -13,6 +13,7 @@ import InitMappingDetailsCard from "./InitMappingDetailsCard";
|
|||
import AddMappingDetailsCard from "./AddMappingDetailsCard";
|
||||
import AggregatePriceDetailsCard from "./AggregatePriceDetailsCard";
|
||||
import InitPriceDetailsCard from "./InitPriceDetailsCard";
|
||||
import SetMinPublishersDetailsCard from "./SetMinPublishersDetailsCard";
|
||||
|
||||
export function PythDetailsCard(props: {
|
||||
ix: TransactionInstruction;
|
||||
|
@ -109,6 +110,13 @@ export function PythDetailsCard(props: {
|
|||
{...props}
|
||||
/>
|
||||
);
|
||||
case "SetMinPublishers":
|
||||
return (
|
||||
<SetMinPublishersDetailsCard
|
||||
info={PythInstruction.decodeSetMinPublishers(ix)}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
}
|
||||
} catch (error) {
|
||||
reportError(error, {
|
||||
|
|
|
@ -402,7 +402,7 @@ export class PythInstruction {
|
|||
return {
|
||||
signerPubkey: instruction.keys[0].pubkey,
|
||||
pricePubkey: instruction.keys[1].pubkey,
|
||||
publisherPubkey: PublicKey.decode(publisherPubkey),
|
||||
publisherPubkey: new PublicKey(publisherPubkey),
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -420,7 +420,7 @@ export class PythInstruction {
|
|||
return {
|
||||
signerPubkey: instruction.keys[0].pubkey,
|
||||
pricePubkey: instruction.keys[1].pubkey,
|
||||
publisherPubkey: PublicKey.decode(publisherPubkey),
|
||||
publisherPubkey: new PublicKey(publisherPubkey),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue