standard-crypto / farcaster-js

MIT License
121 stars 25 forks source link

Unable to submitCast into channel / missing parentUrl #749

Closed hellno closed 8 months ago

hellno commented 8 months ago

Describe the bug

 const writeClient = new HubRestAPIClient({ hubUrl });
 const publishCastResponse = await writeClient.submitCast(data, fid, signerPrivateKey)

cannot send parentUrl in data, so cannot submit casts into channels

hellno commented 8 months ago

@piratekev @gsgalloway can you help with this? I'm up for contributing a PR but not sure which steps are required.

piratekev commented 8 months ago

@hellno I published new versions of farcaster-js and farcaster-js-hub-rest that support this now.

Checkout this test:

const responseMessage = await client.submitCast({
    text: 'This is a test cast submitted from farcaster-js-hub-rest into a channel',
    parentUrl: 'https://warpcast.com/~/channel/test'
}, userGaviBotFid, signerPrivateKey);
hellno commented 8 months ago

so cool, thank you for this 🔥