File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change
1
+ from utils .chains import ERA
1
2
from loguru import logger
2
3
from web3 import Web3
3
4
import random
@@ -28,7 +29,7 @@ def __init__(self,
28
29
self .to_token = to_token
29
30
self .amount_to_swap = random .uniform (amount_from , amount_to )
30
31
self .swap_router_address = '0xbE7D1FD1f6748bbDefC4fbaCafBb11C6Fc506d1d'
31
- self .web3 = Web3 (Web3 .HTTPProvider ('https://mainnet.era.zksync.io' ))
32
+ self .web3 = Web3 (Web3 .HTTPProvider (ERA . rpc ))
32
33
self .account = self .web3 .eth .account .from_key (private_key )
33
34
self .address_wallet = self .account .address
34
35
self .nonce = self .web3 .eth .get_transaction_count (self .address_wallet )
@@ -121,7 +122,7 @@ def __init__(self,
121
122
self .token = token
122
123
self .amount = random .uniform (amount_from , amount_to )
123
124
self .swap_router_address = '0xbE7D1FD1f6748bbDefC4fbaCafBb11C6Fc506d1d'
124
- self .web3 = Web3 (Web3 .HTTPProvider ('https://mainnet.era.zksync.io' ))
125
+ self .web3 = Web3 (Web3 .HTTPProvider (ERA . rpc ))
125
126
self .account = self .web3 .eth .account .from_key (private_key )
126
127
self .address_wallet = self .account .address
127
128
You can’t perform that action at this time.
0 commit comments