Skip to content

Commit

Permalink
Fix ain-contract tests (#2297)
Browse files Browse the repository at this point in the history
  • Loading branch information
prasannavl authored Aug 7, 2023
1 parent 30ee320 commit 0f294f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/functional/feature_dst20.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,9 @@ def run_test(self):
)

# Contract ABI
self.abi = open("./lib/ain-contracts/dst20/output/abi.json", "r", encoding="utf8").read()
# Temp. workaround
import os
self.abi = open(f"{os.path.dirname(__file__)}/../../lib/ain-contracts/dst20/output/abi.json", "r", encoding="utf8").read()

# Generate chain
self.node.generate(105)
Expand Down
3 changes: 2 additions & 1 deletion test/functional/feature_evm_dfi_intrinsics.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def run_test(self):
# check counter contract
from web3 import Web3
w3 = Web3(Web3.HTTPProvider(self.nodes[0].get_evm_rpc()))
abi = open(f"{os.path.dirname(__file__)}/../../lib/ain-contracts/counter_contract/output/abi.json", "r", encoding="utf8").read()
# Temp. workaround
abi = open(f"{os.path.dirname(__file__)}/../../lib/ain-contracts/dfi_intrinsics/output/abi.json", "r", encoding="utf8").read()
counter_contract = w3.eth.contract(
address="0x0000000000000000000000000000000000000301", abi=abi
)
Expand Down

0 comments on commit 0f294f3

Please sign in to comment.