Prechádzať zdrojové kódy

Fix a bug in the id of price attestation (#273)

Ali Behjati 3 rokov pred
rodič
commit
bd90203cdf

+ 1 - 1
solana/pyth2wormhole/program/src/attest.rs

@@ -215,7 +215,7 @@ pub fn attest(ctx: &ExecutionContext, accs: &mut Attest, data: AttestData) -> So
         }
 
         let attestation = PriceAttestation::from_pyth_price_bytes(
-            Identifier::new(product.key.to_bytes()),
+            Identifier::new(price.key.to_bytes()),
             accs.clock.unix_timestamp,
             &*price.try_borrow_data()?,
         )