ivicanikolicsg / MAIAN

MAIAN: automatic tool for finding trace vulnerabilities in Ethereum smart contracts
MIT License
556 stars 157 forks source link

sha3() missing 1 required positional argument: 'value' #22

Open johniadeluca opened 6 years ago

johniadeluca commented 6 years ago

Getting this error after installing and adhering to all of the indicated dependencies mentioned earlier.

Traceback (most recent call last):
  File "maian.py", line 182, in <module>
    main(sys.argv[1:])
  File "maian.py", line 105, in main
    fhashes = get_function_hashes( args.soliditycode[1] )
  File "/Users/johniadeluca/Desktop/logoEdits/MAIAN/tool/contracts.py", line 59, in get_function_hashes
    hash_op = Web3.sha3(hs.encode('utf-8'), encoding='bytes')
  File "/Users/johniadeluca/anaconda3/lib/python3.6/site-packages/web3/utils/string.py", line 83, in inner
    return force_obj_to_text(fn(*args, **kwargs))
TypeError: sha3() missing 1 required positional argument: 'value'

Any help/ideas? Can't find the declaration of sha3()

77aq commented 6 years ago

met it too

tutu6289 commented 6 years ago

oh,I met it too...

Ryokocc commented 6 years ago

I replace web3 to 3.4.4,and then met this problem....

fabioajm commented 6 years ago

Has anyone found the fix?

Rimay commented 5 years ago

I met the same problem, has anybody solved it???

gsalzer commented 2 years ago

Try the fork at https://github.com/smartbugs/MAIAN, which updates Maian to recent versions of Python3, web3 and z3.