diff --git a/.changeset/breezy-bananas-cheer.md b/.changeset/breezy-bananas-cheer.md new file mode 100644 index 0000000000..ec2bd3239c --- /dev/null +++ b/.changeset/breezy-bananas-cheer.md @@ -0,0 +1,5 @@ +--- +"@wagmi/core": patch +--- + +Marked `to` as optional for `sendTransaction`. diff --git a/packages/core/src/actions/sendTransaction.ts b/packages/core/src/actions/sendTransaction.ts index e1322d1d7b..da4b7e02dc 100644 --- a/packages/core/src/actions/sendTransaction.ts +++ b/packages/core/src/actions/sendTransaction.ts @@ -1,6 +1,5 @@ import type { Account, - Address, Chain, Client, TransactionRequest, @@ -41,9 +40,7 @@ export type SendTransactionParameters< 'chain' | 'gas' > & ChainIdParameter & - ConnectorParameter & { - to: Address - } + ConnectorParameter > }[number] & { /** Gas provided for transaction execution, or `null` to skip the prelude gas estimation. */