Skip to content

Commit bd90203

Browse files
authored
Fix a bug in the id of price attestation (#273)
1 parent dd3f5a5 commit bd90203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solana/pyth2wormhole/program/src/attest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ pub fn attest(ctx: &ExecutionContext, accs: &mut Attest, data: AttestData) -> So
215215
}
216216

217217
let attestation = PriceAttestation::from_pyth_price_bytes(
218-
Identifier::new(product.key.to_bytes()),
218+
Identifier::new(price.key.to_bytes()),
219219
accs.clock.unix_timestamp,
220220
&*price.try_borrow_data()?,
221221
)

0 commit comments

Comments
 (0)