Skip to content

Commit

Permalink
feat: update hubweb
Browse files Browse the repository at this point in the history
  • Loading branch information
ttang authored and ttang committed Mar 14, 2024
1 parent 26d4f27 commit c22036b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/u3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"dependencies": {
"@airstack/airstack-react": "^0.4.7",
"@farcaster/hub-web": "^0.8.4",
"@farcaster/hub-web": "^0.8.5",
"@lens-protocol/metadata": "^1.1.5",
"@lens-protocol/react-web": "^2.0.0-alpha.33",
"@lens-protocol/wagmi": "^4.0.0-alpha.2",
Expand Down
6 changes: 4 additions & 2 deletions apps/u3/src/components/social/EmbedFrame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import { useAccount, useConfig } from 'wagmi';

import { CastId, Message, makeFrameAction } from '@farcaster/hub-web';
import { formatEther, parseEther, toHex } from 'viem';
import { formatEther, fromHex, parseEther, toHex } from 'viem';
import { toast } from 'react-toastify';
import { Cross2Icon, CaretLeftIcon } from '@radix-ui/react-icons';
import { FarCast } from '../../services/social/types';
Expand Down Expand Up @@ -67,6 +67,7 @@ export default function EmbedCastFrame({
inputText: Buffer.from(frameText),
state: Buffer.from(state || ''),
transactionId: Buffer.from(txId),
address: address ? fromHex(address, 'bytes') : Buffer.from(''),
},
{
fid: currFid,
Expand Down Expand Up @@ -111,7 +112,7 @@ export default function EmbedCastFrame({
const { frame } = resp.data.data;
setFrameData(frame);
},
[frameData, currFid, encryptedSigner, castId, frameText]
[frameData, currFid, encryptedSigner, castId, frameText, address]
);

const sendEthTransactionAction = async ({
Expand Down Expand Up @@ -192,6 +193,7 @@ export default function EmbedCastFrame({
inputText: Buffer.from(frameText),
state: Buffer.from(frameData.state || ''),
transactionId: Buffer.from(''),
address: address ? fromHex(address, 'bytes') : Buffer.from(''),
},
{
fid: currFid,
Expand Down

0 comments on commit c22036b

Please sign in to comment.