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

This commit is contained in:
Ali Behjati 2022-09-07 14:57:15 +02:00 committed by GitHub
parent dd3f5a57ee
commit bd90203cdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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