浏览代码

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

Ali Behjati 3 年之前
父节点
当前提交
bd90203cdf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      solana/pyth2wormhole/program/src/attest.rs

+ 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()?,
         )