|
10 | 10 | from web3.contract.contract import ContractFunction, ContractConstructor
|
11 | 11 | from web3.exceptions import ContractLogicError
|
12 | 12 |
|
13 |
| -from IceCreamSwapWeb3 import Web3Advanced |
| 13 | +from .Web3Advanced import Web3Advanced |
14 | 14 |
|
15 | 15 |
|
16 | 16 | # load multicall abi
|
17 |
| -with open("abi/Multicall.abi") as f: |
| 17 | +with open("./abi/Multicall.abi") as f: |
18 | 18 | MULTICALL_ABI = f.read()
|
19 | 19 |
|
20 | 20 | # load undeployed multicall abi and bytecode
|
21 |
| -with open("abi/UndeployedMulticall.abi") as f: |
| 21 | +with open("./abi/UndeployedMulticall.abi") as f: |
22 | 22 | UNDEPLOYED_MULTICALL_ABI = f.read()
|
23 |
| -with open("bytecode/UndeployedMulticall.bytecode") as f: |
| 23 | +with open("./bytecode/UndeployedMulticall.bytecode") as f: |
24 | 24 | UNDEPLOYED_MULTICALL_BYTECODE = f.read()
|
25 | 25 |
|
26 | 26 | # allowed chars in HEX string
|
@@ -326,11 +326,11 @@ def main(
|
326 | 326 | ):
|
327 | 327 | w3 = Web3Advanced(node_url=node_url)
|
328 | 328 |
|
329 |
| - with open("abi/Counter.abi") as f: |
| 329 | + with open("./abi/Counter.abi") as f: |
330 | 330 | counter_contract_abi = f.read()
|
331 |
| - with open("bytecode/Counter.bytecode") as f: |
| 331 | + with open("./bytecode/Counter.bytecode") as f: |
332 | 332 | counter_contract_bytecode = f.read()
|
333 |
| - with open("abi/ERC20.abi") as f: |
| 333 | + with open("./abi/ERC20.abi") as f: |
334 | 334 | erc20_abi = f.read()
|
335 | 335 |
|
336 | 336 | counter_contract = w3.eth.contract(bytecode=counter_contract_bytecode, abi=counter_contract_abi)
|
|
0 commit comments