Skip to content

Commit 7238d29

Browse files
authored
fix: for FrameTransactionEthSendParams.data replaced Address with Hex (#224)
1 parent 93041c2 commit 7238d29

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.changeset/dirty-crabs-pretend.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@coinbase/onchainkit': patch
3+
---
4+
5+
- **fix**: for `FrameTransactionEthSendParams.data` replaced `Address` with `Hex`. By @zizzamia #224

site/docs/pages/frame/types.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ type FrameTransactionResponse = {
150150
```ts
151151
type FrameTransactionEthSendParams = {
152152
abi: Abi; // The contract ABI for the contract to call.
153-
data?: Address; // The data to send with the transaction.
153+
data?: Hex; // The data to send with the transaction.
154154
to: Address; // The address of the contract to call.
155155
value: bigint; // The amount of Ether to send with the transaction.
156156
};

src/frame/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Abi, Address } from 'viem';
1+
import type { Abi, Address, Hex } from 'viem';
22
import { NeynarFrameValidationInternalModel } from '../utils/neynar/frame/types';
33

44
/**
@@ -154,7 +154,7 @@ export type FrameTransactionResponse = {
154154
*/
155155
export type FrameTransactionEthSendParams = {
156156
abi: Abi; // The contract ABI for the contract to call.
157-
data?: Address; // The data to send with the transaction.
157+
data?: Hex; // The data to send with the transaction.
158158
to: Address; // The address of the contract to call.
159159
value: string; // The amount of Wei to send with the transaction
160160
};

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const version = '0.9.11';
1+
export const version = '0.9.12';

0 commit comments

Comments
 (0)