File tree Expand file tree Collapse file tree 4 files changed +5
-28
lines changed
packages/networks/src/networks/vNaga/envs Expand file tree Collapse file tree 4 files changed +5
-28
lines changed Original file line number Diff line number Diff line change @@ -3,19 +3,12 @@ import { createChainManager } from './chain-manager/createChainManager';
33import { nagaDevEnvironment } from './naga-dev.env' ;
44import type { ExpectedAccountOrWalletClient } from '../../shared/managers/contract-manager/createContractsManager' ;
55
6- const baseModule = createBaseModule ( {
6+ const nagaDev = createBaseModule ( {
77 networkConfig : nagaDevEnvironment . getConfig ( ) ,
88 moduleName : nagaDevEnvironment . getNetworkName ( ) ,
99 createChainManager : ( account : ExpectedAccountOrWalletClient ) =>
1010 createChainManager ( account ) ,
1111} ) ;
1212
13- // Add getChainManager method for backward compatibility
14- const nagaDev = {
15- ...baseModule ,
16- getChainManager : ( accountOrWalletClient : ExpectedAccountOrWalletClient ) =>
17- createChainManager ( accountOrWalletClient ) ,
18- } ;
19-
2013export type NagaDevUnifiedModule = typeof nagaDev ;
2114export { nagaDev } ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import type { ExpectedAccountOrWalletClient } from '../../shared/managers/contra
55
66const baseModule = createBaseModule ( {
77 networkConfig : nagaLocalEnvironment . getConfig ( ) ,
8- moduleName : 'naga-local' ,
8+ moduleName : nagaLocalEnvironment . getNetworkName ( ) ,
99 createChainManager : ( account : ExpectedAccountOrWalletClient ) =>
1010 createChainManager ( account ) ,
1111} ) ;
@@ -15,9 +15,6 @@ const nagaLocal = {
1515 ...baseModule ,
1616 // Local environment specific getter for private key
1717 getPrivateKey : ( ) => nagaLocalEnvironment . getPrivateKey ( ) ,
18- // Add getChainManager method for backward compatibility
19- getChainManager : ( accountOrWalletClient : ExpectedAccountOrWalletClient ) =>
20- createChainManager ( accountOrWalletClient ) ,
2118} ;
2219
2320export type NagaLocal = typeof nagaLocal ;
Original file line number Diff line number Diff line change @@ -3,19 +3,12 @@ import { createChainManager } from './chain-manager/createChainManager';
33import { nagaStagingEnvironment } from './naga-staging.env' ;
44import type { ExpectedAccountOrWalletClient } from '../../shared/managers/contract-manager/createContractsManager' ;
55
6- const baseModule = createBaseModule ( {
6+ const nagaStaging = createBaseModule ( {
77 networkConfig : nagaStagingEnvironment . getConfig ( ) ,
88 moduleName : 'naga-staging' ,
99 createChainManager : ( account : ExpectedAccountOrWalletClient ) =>
1010 createChainManager ( account ) ,
1111} ) ;
1212
13- // Add getChainManager method for backward compatibility
14- const nagaStaging = {
15- ...baseModule ,
16- getChainManager : ( accountOrWalletClient : ExpectedAccountOrWalletClient ) =>
17- createChainManager ( accountOrWalletClient ) ,
18- } ;
19-
2013export type NagaStaging = typeof nagaStaging ;
2114export { nagaStaging } ;
Original file line number Diff line number Diff line change @@ -3,18 +3,12 @@ import { createChainManager } from './chain-manager/createChainManager';
33import { nagaTestEnvironment } from './naga-test.env' ;
44import type { ExpectedAccountOrWalletClient } from '../../shared/managers/contract-manager/createContractsManager' ;
55
6- const baseModule = createBaseModule ( {
6+ const nagaTest = createBaseModule ( {
77 networkConfig : nagaTestEnvironment . getConfig ( ) ,
8- moduleName : 'naga-test' ,
8+ moduleName : nagaTestEnvironment . getNetworkName ( ) ,
99 createChainManager : ( account : ExpectedAccountOrWalletClient ) =>
1010 createChainManager ( account ) ,
1111} ) ;
1212
13- const nagaTest = {
14- ...baseModule ,
15- getChainManager : ( accountOrWalletClient : ExpectedAccountOrWalletClient ) =>
16- createChainManager ( accountOrWalletClient ) ,
17- } ;
18-
1913export type NagaTest = typeof nagaTest ;
2014export { nagaTest } ;
You can’t perform that action at this time.
0 commit comments