Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: invalid literal for int() with base 10: '5000e18' in AbstractType.py #3

Open
Kasche153 opened this issue Apr 29, 2024 · 0 comments

Comments

@Kasche153
Copy link

System

  • Macbook Pro M1 Max
  • macOS Ventura Version 13.0

Requirements.txt

web3utils==0.1.3
z3-solver==4.13.0.0
slither-analyzer==0.10.1
alive-progress==3.1.5

Commands

python -m invconplus.main --address 0x3157439C84260541003001129c42FB6aBa57E758 --maxCount 400

Output including stacktrace

 File "/Users/gustavkasche/.pyenv/versions/3.8.13/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/Users/gustavkasche/.pyenv/versions/3.8.13/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/Users/gustavkasche/Desktop/THESIS/InvConPlus-Tool/invconplus/main.py", line 131, in <module>
    main(args.address, args.configuration, args.maxCount, args.minSupport, args.offset)
  File "/Users/gustavkasche/Desktop/THESIS/InvConPlus-Tool/invconplus/main.py", line 15, in main
    txreplayer = TransactionReplayer(contract_address=address, maxCount=maxCount, offset= offset)
  File "/Users/gustavkasche/Desktop/THESIS/InvConPlus-Tool/invconplus/model/Replayer.py", line 21, in __init__
    self.myreader = Reader(contract_address=contract_address, maxCount=maxCount, offset=offset)
  File "/Users/gustavkasche/Desktop/THESIS/InvConPlus-Tool/invconplus/model/Reader.py", line 17, in __init__
    self.contractName, self.storageLayout, self.abi, self.constants, self.transactions = bdProvider.read()
  File "/Users/gustavkasche/Desktop/THESIS/InvConPlus-Tool/invconplus/plugin/BlockchainDataProvider.py", line 113, in read
    return self._read(export_file=export_file)
  File "/Users/gustavkasche/Desktop/THESIS/InvConPlus-Tool/invconplus/plugin/BlockchainDataProvider.py", line 75, in _read
    contractName, storageLayout, abi, constants = scProvider.read()
  File "/Users/gustavkasche/Desktop/THESIS/InvConPlus-Tool/invconplus/plugin/SourcecodeProvider.py", line 23, in read
    return mainContract, storageLayout, abi, self.extractConstants() 
  File "/Users/gustavkasche/Desktop/THESIS/InvConPlus-Tool/invconplus/plugin/SourcecodeProvider.py", line 62, in extractConstants
    return myContract.extractConstants()
  File "/Users/gustavkasche/Desktop/THESIS/InvConPlus-Tool/invconplus/abstractType/AbstractType.py", line 99, in extractConstants
    value = int(var.expression.value, 16) if var.expression.value.startswith("0x") else int(var.expression.value)
ValueError: invalid literal for int() with base 10: '5000e18'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant