Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Commit

Permalink
Store fee_token internally
Browse files Browse the repository at this point in the history
  • Loading branch information
FabijanC committed Jun 3, 2022
1 parent 15c3e7e commit 8db6e6c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion starknet_devnet/starknet_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async def initialize(self):
if not self.__initialized:
starknet = await self.__get_starknet()

await FeeToken.deploy(starknet)
await self.__deploy_fee_token()
await self.__deploy_accounts()

await self.__preserve_current_state(starknet.state.state)
Expand Down Expand Up @@ -159,6 +159,11 @@ async def __store_transaction(

self.transactions.store(tx_hash, transaction)

async def __deploy_fee_token(self):
starknet = await self.__get_starknet()
await FeeToken.deploy(starknet)
self.contracts.store(FeeToken.ADDRESS, ContractWrapper(FeeToken.contract, FeeToken.get_definition()))

async def __deploy_accounts(self):
starknet = await self.__get_starknet()
for account in self.accounts:
Expand Down

0 comments on commit 8db6e6c

Please sign in to comment.