Skip to content

Commit 61710d9

Browse files
Handle price feed data correctly
1 parent 1583cf1 commit 61710d9

File tree

1 file changed

+1
-1
lines changed
  • pages/price-feeds/create-your-first-pyth-app/evm

1 file changed

+1
-1
lines changed

pages/price-feeds/create-your-first-pyth-app/evm/part-2.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ async function run() {
243243
console.log(priceFeedUpdateData);
244244

245245
const hash = await contract.write.updateAndMint(
246-
[priceFeedUpdateData as any],
246+
[[`0x${priceFeedUpdateData.binary.data[0]}`]] as any,
247247
{ value: parseEther("0.0005") }
248248
);
249249
console.log("Transaction hash:");

0 commit comments

Comments
 (0)