diff --git a/.changeset/breezy-ligers-press.md b/.changeset/breezy-ligers-press.md
new file mode 100644
index 0000000000..b451509ef8
--- /dev/null
+++ b/.changeset/breezy-ligers-press.md
@@ -0,0 +1,6 @@
+---
+"viem": patch
+---
+
+- `testClient.getTxPoolContent` → `testClient.getTxpoolContent`
+- `testClient.getTxPoolStatus` → `testClient.getTxpoolStatus`
\ No newline at end of file
diff --git a/site/docs/actions/test/sendUnsignedTransaction.md b/site/docs/actions/test/sendUnsignedTransaction.md
index cc17f0919b..5e0aa2d81d 100644
--- a/site/docs/actions/test/sendUnsignedTransaction.md
+++ b/site/docs/actions/test/sendUnsignedTransaction.md
@@ -21,12 +21,12 @@ Executes a transaction regardless of the signature.
```ts
import { testClient } from '.'
-const { hash } = await testClient.sendUnsignedTransaction({ // [!code focus:99]
+const hash = await testClient.sendUnsignedTransaction({ // [!code focus:99]
from: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266',
to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
value: 1000000000000000000n
})
-// { hash: '0x...' }
+// '0x...'
```
## Returns
diff --git a/src/actions/test/getTxpoolContent.ts b/src/actions/test/getTxpoolContent.ts
index 1849b4a5ff..161715a427 100644
--- a/src/actions/test/getTxpoolContent.ts
+++ b/src/actions/test/getTxpoolContent.ts
@@ -2,14 +2,14 @@ import { Address } from 'abitype'
import type { TestClient } from '../../clients'
import { RpcTransaction } from '../../types'
-export type GetTxPoolContentResponse = {
+export type GetTxpoolContentResponse = {
pending: Record
>
queued: Record>
}
export async function getTxpoolContent(
client: TestClient,
-): Promise {
+): Promise {
return await client.request({
method: 'txpool_content',
})
diff --git a/src/actions/test/getTxpoolStatus.ts b/src/actions/test/getTxpoolStatus.ts
index 1e1ce158b9..c97569f746 100644
--- a/src/actions/test/getTxpoolStatus.ts
+++ b/src/actions/test/getTxpoolStatus.ts
@@ -1,14 +1,14 @@
import type { TestClient } from '../../clients'
import { hexToNumber } from '../../utils'
-export type GetTxPoolStatusResponse = {
+export type GetTxpoolStatusResponse = {
pending: number
queued: number
}
export async function getTxpoolStatus(
client: TestClient,
-): Promise {
+): Promise {
const { pending, queued } = await client.request({
method: 'txpool_status',
})
diff --git a/src/actions/test/index.ts b/src/actions/test/index.ts
index 9236feaee9..1763202070 100644
--- a/src/actions/test/index.ts
+++ b/src/actions/test/index.ts
@@ -5,10 +5,10 @@ export { getAutomine } from './getAutomine'
export type { GetAutomineResponse } from './getAutomine'
export { getTxpoolContent } from './getTxpoolContent'
-export type { GetTxPoolContentResponse } from './getTxpoolContent'
+export type { GetTxpoolContentResponse } from './getTxpoolContent'
export { getTxpoolStatus } from './getTxpoolStatus'
-export type { GetTxPoolStatusResponse } from './getTxpoolStatus'
+export type { GetTxpoolStatusResponse } from './getTxpoolStatus'
export { impersonateAccount } from './impersonateAccount'
export type { ImpersonateAccountArgs } from './impersonateAccount'
diff --git a/src/clients/createTestClient.test.ts b/src/clients/createTestClient.test.ts
index db61d89cb0..3ac21c38b1 100644
--- a/src/clients/createTestClient.test.ts
+++ b/src/clients/createTestClient.test.ts
@@ -29,8 +29,8 @@ test('creates', () => {
"chain": undefined,
"dropTransaction": [Function],
"getAutomine": [Function],
- "getTxPoolContent": [Function],
- "getTxPoolStatus": [Function],
+ "getTxpoolContent": [Function],
+ "getTxpoolStatus": [Function],
"impersonateAccount": [Function],
"increaseTime": [Function],
"inspectTxpool": [Function],
@@ -109,8 +109,8 @@ describe('transports', () => {
},
"dropTransaction": [Function],
"getAutomine": [Function],
- "getTxPoolContent": [Function],
- "getTxPoolStatus": [Function],
+ "getTxpoolContent": [Function],
+ "getTxpoolStatus": [Function],
"impersonateAccount": [Function],
"increaseTime": [Function],
"inspectTxpool": [Function],
@@ -189,8 +189,8 @@ describe('transports', () => {
},
"dropTransaction": [Function],
"getAutomine": [Function],
- "getTxPoolContent": [Function],
- "getTxPoolStatus": [Function],
+ "getTxpoolContent": [Function],
+ "getTxpoolStatus": [Function],
"impersonateAccount": [Function],
"increaseTime": [Function],
"inspectTxpool": [Function],
diff --git a/src/clients/decorators/test.test.ts b/src/clients/decorators/test.test.ts
index 39bc21889a..2148971adb 100644
--- a/src/clients/decorators/test.test.ts
+++ b/src/clients/decorators/test.test.ts
@@ -19,8 +19,8 @@ test('default', async () => {
{
"dropTransaction": [Function],
"getAutomine": [Function],
- "getTxPoolContent": [Function],
- "getTxPoolStatus": [Function],
+ "getTxpoolContent": [Function],
+ "getTxpoolStatus": [Function],
"impersonateAccount": [Function],
"increaseTime": [Function],
"inspectTxpool": [Function],
@@ -64,12 +64,12 @@ describe('smoke test', () => {
expect(await testClient.getAutomine()).toBeDefined()
})
- test('getTxPoolContent', async () => {
- expect(await testClient.getTxPoolContent()).toBeDefined()
+ test('getTxpoolContent', async () => {
+ expect(await testClient.getTxpoolContent()).toBeDefined()
})
- test('getTxPoolStatus', async () => {
- expect(await testClient.getTxPoolStatus()).toBeDefined()
+ test('getTxpoolStatus', async () => {
+ expect(await testClient.getTxpoolStatus()).toBeDefined()
})
test.skip('impersonateAccount', async () => {
diff --git a/src/clients/decorators/test.ts b/src/clients/decorators/test.ts
index 182221a868..429bda9834 100644
--- a/src/clients/decorators/test.ts
+++ b/src/clients/decorators/test.ts
@@ -1,8 +1,8 @@
import type {
DropTransactionArgs,
GetAutomineResponse,
- GetTxPoolContentResponse,
- GetTxPoolStatusResponse,
+ GetTxpoolContentResponse,
+ GetTxpoolStatusResponse,
ImpersonateAccountArgs,
IncreaseTimeArgs,
InspectTxpoolResponse,
@@ -60,8 +60,8 @@ import type { TestClient } from '../createTestClient'
export type TestActions = {
dropTransaction: (args: DropTransactionArgs) => Promise
getAutomine: () => Promise
- getTxPoolContent: () => Promise
- getTxPoolStatus: () => Promise
+ getTxpoolContent: () => Promise
+ getTxpoolStatus: () => Promise
impersonateAccount: (args: ImpersonateAccountArgs) => Promise
increaseTime: (args: IncreaseTimeArgs) => Promise
inspectTxpool: () => Promise
@@ -104,8 +104,8 @@ export const testActions = <
): TestActions => ({
dropTransaction: (args) => dropTransaction(client, args),
getAutomine: () => getAutomine(client),
- getTxPoolContent: () => getTxpoolContent(client),
- getTxPoolStatus: () => getTxpoolStatus(client),
+ getTxpoolContent: () => getTxpoolContent(client),
+ getTxpoolStatus: () => getTxpoolStatus(client),
impersonateAccount: (args) => impersonateAccount(client, args),
increaseTime: (args) => increaseTime(client, args),
inspectTxpool: () => inspectTxpool(client),