Skip to content

Commit

Permalink
9th oct update. building fds_contract
Browse files Browse the repository at this point in the history
  • Loading branch information
Aviksaikat committed Oct 10, 2023
1 parent 8f15248 commit a91cd3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/fds/fds_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def __init__(
self,
account: AccountAPI = None,
):
super().__init__()
# super().__init__()
self.account = account

def at(
Expand All @@ -114,7 +114,7 @@ def at(
return
self.address = address
self.abi = abi
return Contract(address=self.adddress, abi=self.abi)
return Contract(address=self.address, abi=self.abi)

def deploy(
self, contract: ContractContainer, *args, publish: bool = False, **kwargs
Expand Down
8 changes: 4 additions & 4 deletions src/fds/tests/unit_tests/test_fds_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from fds.fds_contract import FDSContract


def test_load_contract_from_abi():
def test_load_contract_from_abi(owner):
abi = [
{
"inputs": [],
Expand All @@ -21,9 +21,9 @@ def test_load_contract_from_abi():
},
]

address = "0xabcdababababababababababababab"

fdscontract = FDSContract()
account = owner
address = account.address
fdscontract = FDSContract(owner)
loaded_contract = fdscontract.at(address=address, abi=abi)

print(dir(loaded_contract))
Expand Down

0 comments on commit a91cd3f

Please sign in to comment.