franklinliu / invcon-tool Goto Github PK
View Code? Open in Web Editor NEWInvCon: A Dynamic Invariant Detector for Ethereum Smart Contracts!
InvCon: A Dynamic Invariant Detector for Ethereum Smart Contracts!
Recently when running the image with a contract ie.
docker pull liuyedocker/invcon:latest
mkdir /tmp
docker run -it --rm -v /tmp:/home/realworldcontracts/ liuyedocker/invcon invcon --eth_address 0x0e9d46eed51a527db8f5c12a803eb7fddf4da332 --workspace /home/realworldcontracts/
as described in the readme, one will get always this error for any contract address:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/InvCon-0.1.0-py3.8.egg/invcon/crawler/crawler.py", line 430, in crawl
contractName, compilerVersion, constructorArguments, sourcecode = self.getSourceCode()
File "/usr/local/lib/python3.8/dist-packages/InvCon-0.1.0-py3.8.egg/invcon/crawler/crawler.py", line 342, in getSourceCode
contractName = sourcecode[0]["ContractName"]
TypeError: string indices must be integers
I do remember it working last month, maybe the Etherscan keys are not valid anymore?
For this command:
docker run -it --rm liuyedocker/invcon invcon --eth_address 0x4075a80dd952d27a58c6174f87571fdb7b1b5390
I get the following output:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/InvCon-0.1.0-py3.8.egg/invcon/crawler/crawler.py", line 430, in crawl
contractName, compilerVersion, constructorArguments, sourcecode = self.getSourceCode()
File "/usr/local/lib/python3.8/dist-packages/InvCon-0.1.0-py3.8.egg/invcon/crawler/crawler.py", line 342, in getSourceCode
contractName = sourcecode[0]["ContractName"]
TypeError: string indices must be integers
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.