File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -152,15 +152,17 @@ export class Configuration {
152152 gatewayUrl : process . env . ROOTSTOCK_GATEWAY_URL ?? '' ,
153153 apiKey : process . env . ALCHEMY_API_KEY ?? '' ,
154154 chainId : + ( process . env . ROOTSTOCK_CHAIN_ID ?? - 1 ) ,
155- walletSeed : process . env . ROOTSTOCK_WALLET_SEED ?? '' ,
156155 } ,
157156 citrea : {
158157 gatewayUrl : process . env . CITREA_GATEWAY_URL ?? '' ,
159158 chainId : + ( process . env . CITREA_CHAIN_ID ?? - 1 ) ,
160- walletAddress : process . env . CITREA_WALLET_ADDRESS ?? '' ,
161159 } ,
162160 } ;
163161
162+ evm = {
163+ walletSeed : process . env . EVM_WALLET_SEED ?? '' ,
164+ } ;
165+
164166 alchemy = {
165167 apiKey : process . env . ALCHEMY_API_KEY ,
166168 authToken : process . env . ALCHEMY_AUTH_TOKEN ,
Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ export class CitreaClient extends EvmClient {
1111 }
1212
1313 async getNativeCoinBalance ( ) : Promise < number > {
14- const balance = await this . provider . getBalance ( Config . blockchain . citrea . walletAddress ) ;
14+ const walletAddress = EvmUtil . createWallet ( { seed : Config . evm . walletSeed , index : 0 } ) . address ;
15+
16+ const balance = await this . provider . getBalance ( walletAddress ) ;
1517 return LightningHelper . btcToSat ( EvmUtil . fromWeiAmount ( balance . toString ( ) ) ) ;
1618 }
1719
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export class RootstockClient extends EvmClient {
1616
1717 const url = `${ this . params . gatewayUrl } /${ this . params . apiKey ?? '' } ` ;
1818
19- const walletAddress = EvmUtil . createWallet ( { seed : Config . blockchain . rootstock . walletSeed , index : 0 } ) . address ;
19+ const walletAddress = EvmUtil . createWallet ( { seed : Config . evm . walletSeed , index : 0 } ) . address ;
2020
2121 const balanceResult = await http
2222 . post < { result : number } > ( url , {
You can’t perform that action at this time.
0 commit comments