Skip to content

Commit 217184e

Browse files
committed
hopfully fixed file locality so it can be used as package
1 parent 25dc6f5 commit 217184e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

IceCreamSwapWeb3/Multicall.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010
from web3.contract.contract import ContractFunction, ContractConstructor
1111
from web3.exceptions import ContractLogicError
1212

13-
from IceCreamSwapWeb3 import Web3Advanced
13+
from .Web3Advanced import Web3Advanced
1414

1515

1616
# load multicall abi
17-
with open("abi/Multicall.abi") as f:
17+
with open("./abi/Multicall.abi") as f:
1818
MULTICALL_ABI = f.read()
1919

2020
# load undeployed multicall abi and bytecode
21-
with open("abi/UndeployedMulticall.abi") as f:
21+
with open("./abi/UndeployedMulticall.abi") as f:
2222
UNDEPLOYED_MULTICALL_ABI = f.read()
23-
with open("bytecode/UndeployedMulticall.bytecode") as f:
23+
with open("./bytecode/UndeployedMulticall.bytecode") as f:
2424
UNDEPLOYED_MULTICALL_BYTECODE = f.read()
2525

2626
# allowed chars in HEX string
@@ -326,11 +326,11 @@ def main(
326326
):
327327
w3 = Web3Advanced(node_url=node_url)
328328

329-
with open("abi/Counter.abi") as f:
329+
with open("./abi/Counter.abi") as f:
330330
counter_contract_abi = f.read()
331-
with open("bytecode/Counter.bytecode") as f:
331+
with open("./bytecode/Counter.bytecode") as f:
332332
counter_contract_bytecode = f.read()
333-
with open("abi/ERC20.abi") as f:
333+
with open("./abi/ERC20.abi") as f:
334334
erc20_abi = f.read()
335335

336336
counter_contract = w3.eth.contract(bytecode=counter_contract_bytecode, abi=counter_contract_abi)

0 commit comments

Comments
 (0)