Skip to content

Commit

Permalink
Merge pull request #612 from us3r-network/F-updateHubweb-ttang
Browse files Browse the repository at this point in the history
feat: update hubweb
  • Loading branch information
Tonyce authored Mar 14, 2024
2 parents ed2f739 + c22036b commit c7ca2d0
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, useChains } 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 @@ -72,6 +72,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 @@ -116,7 +117,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 = useCallback(async () => {
Expand Down Expand Up @@ -187,6 +188,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 c7ca2d0

Please sign in to comment.