Skip to content

Commit

Permalink
fix: get addresses of example contracts from .env
Browse files Browse the repository at this point in the history
 Changes to be committed:
	modified:   hybrid-compute/offchain/userop_utils.py
  • Loading branch information
mmontour1306 committed Nov 14, 2024
1 parent 6f128e9 commit 40f8ea6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions hybrid-compute/offchain/userop_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,27 +60,27 @@
EP = w3.eth.contract(
address=ep_addr, abi=deployed['EntryPoint']['abi'])
HH = w3.eth.contract(
address=deployed['HCHelper']['address'], abi=deployed['HCHelper']['abi'])
address=os.environ['HC_HELPER_ADDR'], abi=deployed['HCHelper']['abi'])
# This address is unique for each user, who deploys their own wallet account
#SA = w3.eth.contract(
# address=u_account, abi=deployed['SimpleAccount']['abi'])

HA = w3.eth.contract(address=deployed['HybridAccount']
['address'], abi=deployed['HybridAccount']['abi'])
HA = w3.eth.contract(address=os.environ['OC_HYBRID_ACCOUNT'],
abi=deployed['HybridAccount']['abi'])
TC = w3.eth.contract(
address=deployed['TestHybrid']['address'], abi=deployed['TestHybrid']['abi'])
address=os.environ['TEST_HYBRID'], abi=deployed['TestHybrid']['abi'])
KYC = w3.eth.contract(
address=deployed['TestKyc']['address'], abi=deployed['TestKyc']['abi'])
address=os.environ['TEST_KYC'], abi=deployed['TestKyc']['abi'])
TFP = w3.eth.contract(
address=deployed['TestTokenPrice']['address'], abi=deployed['TestTokenPrice']['abi'])
address=os.environ['TEST_TOKEN_PRICE'], abi=deployed['TestTokenPrice']['abi'])
#TCAPTCHA = w3.eth.contract(
# address=deployed['TestCaptcha']['address'], abi=deployed['TestCaptcha']['abi'])
TEST_AUCTION = w3.eth.contract(
address=deployed['TestAuctionSystem']['address'], abi=deployed['TestAuctionSystem']['abi'])
address=os.environ['TEST_AUCTION'], abi=deployed['TestAuctionSystem']['abi'])
TEST_SPORTS_BETTING = w3.eth.contract(
address=deployed['TestSportsBetting']['address'], abi=deployed['TestSportsBetting']['abi'])
address=os.environ['TEST_SPORTS_BETTING'], abi=deployed['TestSportsBetting']['abi'])
TEST_RAINFALL_INSURANCE = w3.eth.contract(
address=deployed['TestRainfallInsurance']['address'], abi=deployed['TestRainfallInsurance']['abi'])
address=os.environ['TEST_RAINFALL_INSURANCE'], abi=deployed['TestRainfallInsurance']['abi'])

print("EP at", EP.address)

Expand Down

0 comments on commit 40f8ea6

Please sign in to comment.