@@ -16,7 +16,6 @@ import { V06 } from "../..";
1616
1717const EOA_PK = generatePrivateKey ( ) ;
1818const VIEM_ACC = privateKeyToAccount ( EOA_PK ) ;
19- const OWNER_ADDR = VIEM_ACC . address ;
2019const VIEM_WALLET_CLIENT = createWalletClient ( {
2120 account : VIEM_ACC ,
2221 chain : localhost ,
@@ -33,58 +32,45 @@ export const ACCOUNTS = [
3332 type : "SimpleAccount, withViemWalletClient (account hoisted)" ,
3433 instance : new V06 . Account . Instance ( {
3534 ...V06 . Account . CommonConfigs . SimpleAccount . base (
36- OWNER_ADDR ,
37- V06 . Account . Hooks . RequestSignature . withViemWalletClient (
38- VIEM_WALLET_CLIENT ,
39- ) ,
4035 VIEM_PUBLIC_CLIENT ,
36+ VIEM_WALLET_CLIENT ,
4137 ) ,
4238 } ) ,
4339 } ,
4440 {
4541 type : "SimpleAccount, withViemWalletClient (account not hoisted)" ,
4642 instance : new V06 . Account . Instance ( {
4743 ...V06 . Account . CommonConfigs . SimpleAccount . base (
48- OWNER_ADDR ,
49- V06 . Account . Hooks . RequestSignature . withViemWalletClient (
50- VIEM_WALLET_CLIENT_NO_HOIST ,
51- VIEM_ACC ,
52- ) ,
5344 VIEM_PUBLIC_CLIENT ,
45+ VIEM_WALLET_CLIENT_NO_HOIST ,
46+ VIEM_ACC ,
5447 ) ,
5548 } ) ,
5649 } ,
5750 {
5851 type : "SimpleAccount, with JsonRpcProvider" ,
5952 instance : new V06 . Account . Instance ( {
6053 ...V06 . Account . CommonConfigs . SimpleAccount . base (
61- OWNER_ADDR ,
62- V06 . Account . Hooks . RequestSignature . withViemWalletClient (
63- VIEM_WALLET_CLIENT ,
64- ) ,
6554 ETHERS_JSON_RPC_PROVIDER ,
55+ VIEM_WALLET_CLIENT ,
6656 ) ,
6757 } ) ,
6858 } ,
6959 {
7060 type : "SimpleAccount, withEthersSigner" ,
7161 instance : new V06 . Account . Instance ( {
7262 ...V06 . Account . CommonConfigs . SimpleAccount . base (
73- OWNER_ADDR ,
74- V06 . Account . Hooks . RequestSignature . withEthersSigner ( ETHERS_WALLET ) ,
7563 VIEM_PUBLIC_CLIENT ,
64+ ETHERS_WALLET ,
7665 ) ,
7766 } ) ,
7867 } ,
7968 {
8069 type : "SimpleAccount, with separate viem node and bundler PublicClients" ,
8170 instance : new V06 . Account . Instance ( {
8271 ...V06 . Account . CommonConfigs . SimpleAccount . base (
83- OWNER_ADDR ,
84- V06 . Account . Hooks . RequestSignature . withViemWalletClient (
85- VIEM_WALLET_CLIENT ,
86- ) ,
8772 VIEM_NODE_PUBLIC_CLIENT ,
73+ VIEM_WALLET_CLIENT ,
8874 ) ,
8975
9076 bundlerClient : VIEM_BUNDLER_PUBLIC_CLIENT ,
@@ -94,11 +80,8 @@ export const ACCOUNTS = [
9480 type : "SimpleAccount, with separate ethers node and bundler JsonRpcProviders" ,
9581 instance : new V06 . Account . Instance ( {
9682 ...V06 . Account . CommonConfigs . SimpleAccount . base (
97- OWNER_ADDR ,
98- V06 . Account . Hooks . RequestSignature . withViemWalletClient (
99- VIEM_WALLET_CLIENT ,
100- ) ,
10183 ETHERS_NODE_JSON_RPC_PROVIDER ,
84+ VIEM_WALLET_CLIENT ,
10285 ) ,
10386
10487 bundlerClient : ETHERS_BUNDLER_JSON_RPC_PROVIDER ,
@@ -108,11 +91,8 @@ export const ACCOUNTS = [
10891 type : "SimpleAccount, with Stackup V1 PAYG paymaster" ,
10992 instance : new V06 . Account . Instance ( {
11093 ...V06 . Account . CommonConfigs . SimpleAccount . base (
111- OWNER_ADDR ,
112- V06 . Account . Hooks . RequestSignature . withViemWalletClient (
113- VIEM_WALLET_CLIENT ,
114- ) ,
11594 VIEM_PUBLIC_CLIENT ,
95+ VIEM_WALLET_CLIENT ,
11696 ) ,
11797
11898 requestPaymaster : V06 . Account . Hooks . RequestPaymaster . withCommon ( {
0 commit comments