Skip to content

Commit 3b6455d

Browse files
committed
w
1 parent 4f523b0 commit 3b6455d

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

site/pages/experimental/erc7895/addSubAccount.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { walletClient } from './config'
1717

1818
const subAccount = await walletClient.addSubAccount({
1919
keys: [{
20-
key: '0x0000000000000000000000000000000000000000',
20+
key: '0xefd5fb29a274ea6682673d8b3caa9263e936d48d',
2121
type: 'address'
2222
}],
2323
type: 'create',
@@ -100,6 +100,18 @@ const subAccount = await walletClient.addSubAccount({
100100

101101
The type of signing key.
102102

103+
```ts twoslash
104+
import { walletClient } from './config'
105+
106+
const subAccount = await walletClient.addSubAccount({
107+
keys: [{
108+
key: '0xefd5fb29a274ea6682673d8b3caa9263e936d48d486e5df68893003e01241522',
109+
type: 'p256' // [!code focus]
110+
}],
111+
type: 'create',
112+
})
113+
```
114+
103115

104116
### Deployed Accounts
105117

src/experimental/erc7895/actions/addSubAccount.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ export type AddSubAccountParameters = Prettify<
3131
>
3232
>
3333

34-
export type AddSubAccountReturnType = {
34+
export type AddSubAccountReturnType = Prettify<{
3535
address: Address
3636
factory?: Address | undefined
3737
factoryData?: Hex | undefined
38-
}
38+
}>
3939

4040
export type AddSubAccountErrorType = RequestErrorType
4141

src/experimental/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,3 +180,8 @@ export {
180180
type Erc7846Actions,
181181
erc7846Actions,
182182
} from './erc7846/decorators/erc7846.js'
183+
184+
export {
185+
type Erc7895Actions,
186+
erc7895Actions,
187+
} from './erc7895/decorators/erc7895.js'

0 commit comments

Comments
 (0)