Skip to content

Commit

Permalink
fix import error
Browse files Browse the repository at this point in the history
prepare 0.1.2
  • Loading branch information
tintinweb committed Aug 20, 2018
1 parent 8ed139a commit 62d81a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions ethereum_dasm/evmdasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
import os
import time
from ethereum_dasm import utils
from ethereum_dasm.utils import colors
from ethereum_dasm.asm import BasicBlock
from ethereum_dasm.asm.registry import INSTRUCTION_MARKS_BASICBLOCK_END
from ethereum_dasm.asm.disassembler import EVMDisAssembler
import ethereum_input_decoder
from ethereum_input_decoder.decoder import FourByteDirectory

try:
import ethereum_dasm.symbolic.simplify as evmsimplify
Expand Down Expand Up @@ -135,7 +134,7 @@ def guess_abi(self, txs=30):
online_sighash_to_pseudo_abi = {}

for tx_input in tx_inputs:
pseudo_abi = FourByteDirectory.get_pseudo_abi_for_input(utils.str_to_bytes(tx_input))
pseudo_abi = utils.signatures.ethereum_input_decoder.decoder.FourByteDirectory.get_pseudo_abi_for_input(utils.str_to_bytes(tx_input))
lst_pa = list(pseudo_abi)
# todo: hacky
if lst_pa:
Expand Down Expand Up @@ -409,7 +408,7 @@ def _reconstruct_function_signatures(self):
self.functions[sighash] = {"address":loc,
"signature_ascii": ascii,
"signatures_ascii": pot_funcsigs,
"signatures": [ethereum_input_decoder.decoder.FourByteDirectory.parse_text_signature(s) for s in pot_funcsigs],
"signatures": [utils.signatures.ethereum_input_decoder.decoder.FourByteDirectory.parse_text_signature(s) for s in pot_funcsigs],
"payable": True,#functions are payable by default
"constant": None, # no write storage (replaced by view/pure) todo
"view": None, #no write storage todo
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()

version="0.1.1"
version="0.1.2"

setup(
name="ethereum-dasm",
Expand Down

0 comments on commit 62d81a3

Please sign in to comment.