Fix a bug in the id of price attestation (#273)
This commit is contained in:
parent
dd3f5a57ee
commit
bd90203cdf
|
@ -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()?,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue