We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f3406f commit 059283fCopy full SHA for 059283f
sdk/kit.py
@@ -2,6 +2,7 @@
2
3
from web3 import Web3
4
from web3.auto import w3
5
+from solcx import compile_source
6
7
from sdk.contracts.base_wrapper import BaseWrapper
8
from sdk.registry import Registry
@@ -131,3 +132,9 @@ def get_network_config(self):
131
132
'validators': validators_contract.get_config(),
133
'downtime_slasher': downtime_slasher_contract.get_config()
134
}
135
+
136
+ def deploy_contract(self, contract_abi: list = None, bytecode: str = None) -> str:
137
138
+ prepared_tx = self.w3.eth.contract(abi=contract_abi, bytecode=bytecode).constructor()
139
140
+ return self.__wallet.send_transaction(prepared_tx)
0 commit comments