DEV Community

Discussion on: Built on Bitcoin: An Introduction to Full-Stack Web3 Development with Stacks

Collapse
 
binovatyv profile image
Babu Gopalakrishan

Thanks for the article Kenny. I have come across one issue
I do not see a response object, where do you get this ?

index.tsx
if (response.okay && response.result) {
setPostedMessage(hexToCV(response.result).value.data);
}

Collapse
 
krgrs profile image
kenny

Hey thanks for pointing this out! I had heard this from a few other people as well, was a mistype from an older version of the code. Just updated the article and the GitHub repo. That section should be:

if (result.value) {
    setPostedMessage(result.value.data);
}
Enter fullscreen mode Exit fullscreen mode