File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
import copy
2
+ from importlib .resources import files
2
3
from time import sleep
3
4
from typing import Optional
4
5
13
14
from IceCreamSwapWeb3 import Web3Advanced
14
15
15
16
# load multicall abi
16
- with open ( ". /abi/Multicall.abi" ) as f :
17
+ with files ( "IceCreamSwapWeb3" ). joinpath ( ". /abi/Multicall.abi"). open ( 'r' ) as f :
17
18
MULTICALL_ABI = f .read ()
18
19
19
20
# load undeployed multicall abi and bytecode
20
- with open ( ". /abi/UndeployedMulticall.abi" ) as f :
21
+ with files ( "IceCreamSwapWeb3" ). joinpath ( ". /abi/UndeployedMulticall.abi"). open ( 'r' ) as f :
21
22
UNDEPLOYED_MULTICALL_ABI = f .read ()
22
- with open ( ". /bytecode/UndeployedMulticall.bytecode" ) as f :
23
+ with files ( "IceCreamSwapWeb3" ). joinpath ( ". /bytecode/UndeployedMulticall.bytecode"). open ( 'r' ) as f :
23
24
UNDEPLOYED_MULTICALL_BYTECODE = f .read ()
24
25
25
26
# allowed chars in HEX string
You can’t perform that action at this time.
0 commit comments