Open claudioantonio opened 2 months ago
Reading onchainkit docs, I found the solution:
When using the getFrameMessage function, include the allowFramegear option to enable Framegear to send mock frame actions. After adding the allowFramegear option it worked as expected.
But the docs suggest a protection:
import { getFrameMessage } from '@coinbase/onchainkit/frame';
const allowFramegear = process.env.NODE_ENV !== 'production';
// ...
const { isValid, message } = await getFrameMessage(body, {
allowFramegear,
});
Steps to reproduce
npm install
npm run dev
to run a-frame-in-100-lines appnpm install
npm run dev
The error message
Extra comments
This repo is using onchainkit library 0.14.1 and the framegear app on onchainkit's repo is using onchainkit library version 0.15.0. I updated this repo to version 0.15.0, but the error is the same.