diff --git a/.changeset/dirty-crabs-pretend.md b/.changeset/dirty-crabs-pretend.md new file mode 100644 index 0000000000..ef8135c6fe --- /dev/null +++ b/.changeset/dirty-crabs-pretend.md @@ -0,0 +1,5 @@ +--- +'@coinbase/onchainkit': patch +--- + +- **fix**: for `FrameTransactionEthSendParams.data` replaced `Address` with `Hex`. By @zizzamia #224 diff --git a/site/docs/pages/frame/types.mdx b/site/docs/pages/frame/types.mdx index 470b5285c3..addb95ad15 100644 --- a/site/docs/pages/frame/types.mdx +++ b/site/docs/pages/frame/types.mdx @@ -150,7 +150,7 @@ type FrameTransactionResponse = { ```ts type FrameTransactionEthSendParams = { abi: Abi; // The contract ABI for the contract to call. - data?: Address; // The data to send with the transaction. + data?: Hex; // The data to send with the transaction. to: Address; // The address of the contract to call. value: bigint; // The amount of Ether to send with the transaction. }; diff --git a/src/frame/types.ts b/src/frame/types.ts index 380e4a2f7d..e980eb5971 100644 --- a/src/frame/types.ts +++ b/src/frame/types.ts @@ -1,4 +1,4 @@ -import type { Abi, Address } from 'viem'; +import type { Abi, Address, Hex } from 'viem'; import { NeynarFrameValidationInternalModel } from '../utils/neynar/frame/types'; /** @@ -154,7 +154,7 @@ export type FrameTransactionResponse = { */ export type FrameTransactionEthSendParams = { abi: Abi; // The contract ABI for the contract to call. - data?: Address; // The data to send with the transaction. + data?: Hex; // The data to send with the transaction. to: Address; // The address of the contract to call. value: string; // The amount of Wei to send with the transaction }; diff --git a/src/version.ts b/src/version.ts index ae90c8c79e..9172061ef6 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const version = '0.9.11'; +export const version = '0.9.12';