Skip to content

Commit

Permalink
fix: use abi type (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Oct 14, 2021
1 parent 3ea4255 commit 14f6956
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ape_solidity/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import solcx # type: ignore
from ape.api.compiler import CompilerAPI
from ape.types import Bytecode, ContractType
from ape.types import ABI, Bytecode, ContractType
from ape.utils import cached_property
from semantic_version import NpmSpec, Version # type: ignore

Expand Down Expand Up @@ -95,7 +95,7 @@ def compile(self, contract_filepaths: List[Path]) -> List[ContractType]:
sourceId=str(path),
deploymentBytecode=Bytecode(bytecode=contract_type["bin"]), # type: ignore
runtimeBytecode=Bytecode(bytecode=contract_type["bin-runtime"]), # type: ignore
abi=contract_type["abi"],
abi=[ABI.from_dict(abi) for abi in contract_type["abi"]],
userdoc=contract_type["userdoc"],
devdoc=contract_type["devdoc"],
)
Expand Down

0 comments on commit 14f6956

Please sign in to comment.