File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed
site/pages/experimental/erc7895 Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import { walletClient } from './config'
1717
1818const 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
101101The 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
Original file line number Diff line number Diff 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
4040export type AddSubAccountErrorType = RequestErrorType
4141
Original file line number Diff line number Diff 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'
You can’t perform that action at this time.
0 commit comments