Skip to content

Commit 41722a5

Browse files
Handle price feed data correctly (#718)
1 parent de32e0f commit 41722a5

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
@@ -244,7 +244,7 @@ async function run() {
244244
console.log(priceFeedUpdateData);
245245

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

0 commit comments

Comments
 (0)