Skip to content

Commit

Permalink
removed legacy dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
etzellux committed Jan 10, 2023
1 parent f0195fb commit 51a72cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tinyman/v1/contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
from base64 import b64decode
from tinyman.utils import encode_value

_contracts = json.loads(importlib.resources.read_text(tinyman.v1, "asc.json"))
_contracts = json.loads(
importlib.resources.files(tinyman.v1).joinpath("asc.json").read_text()
)

pool_logicsig_def = _contracts["contracts"]["pool_logicsig"]["logic"]

Expand Down
6 changes: 5 additions & 1 deletion tinyman/v2/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
from tinyman.utils import bytes_to_int

tealishmap = TealishMap(
json.loads(importlib.resources.read_text(tinyman.v2, "amm_approval.map.json"))
json.loads(
importlib.resources.files(tinyman.v2)
.joinpath("amm_approval.map.json")
.read_text()
)
)


Expand Down

0 comments on commit 51a72cb

Please sign in to comment.