Comments (10)
OK, PR #6 for the Makefile change but I don't know how to fix the issue with assertThrow
other than moving the definition to Instruction.h
, which seems wrong. :)
For what it's worth here's the compiler error:
In file included from Contract.cpp:18:
In file included from ./Porosity.h:41:
In file included from ./PorosityDefs.h:20:
./Instruction.h:214:56: error: use of undeclared identifier 'InvalidOpcode'
assertThrow(1 <= _number && _number <= 32, InvalidOpcode, "Invalid PUSH instruction requested.");
I changed InvalidOpcode
to a string when I was initially investigating; that results in this error:
In file included from Contract.cpp:18:
In file included from ./Porosity.h:41:
In file included from ./PorosityDefs.h:20:
./Instruction.h:214:13: error: use of undeclared identifier 'assertThrow'
assertThrow(1 <= _number && _number <= 32, "InvalidOpcode", "Invalid PUSH instruction requested.");
from porosity.
That would make a good pool request :)
from porosity.
Yes, pull request please :)
from porosity.
Also it will be great to make it available for linux
Update: i've changed the flag suggested by @beaugunderson but now i got this error
g++ -std=c++14 -c -o Utils.o Utils.cpp In file included from Porosity.h:32:0, from Utils.cpp:17: Common.h:48:66: fatal error: boost_multiprecision_number_compare_bug_workaround.hpp: No such file or directory
Update #2: i've downloaded this file but still cannot compile because of various erros like this one
Statement.h: In member function ‘std::__cxx11::string Statement::getStatementStr()’: Statement.h:135:84: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
Any ideas?
from porosity.
I'm getting segfaults when I run the OS X compiled binary - is anyone else?
$ export abi=`cat ~/code/java/web3j/src/test/resources/solidity/greeter/build/greeter.abi`
$ export code=`cat ~/code/java/web3j/src/test/resources/solidity/greeter/build/greeter.bin`
$ ./porosity --abi $abi --code $code --decompile --verbose 0
Porosity v0.1 (https://www.comae.io)
Matt Suiche, Comae Technologies <[email protected]>
The Ethereum bytecode commandline decompiler.
Decompiles the given Ethereum input bytecode and outputs the Solidity code.
Segmentation fault: 11
$ ./porosity --abi $abi --code $code --list --verbose 0
Porosity v0.1 (https://www.comae.io)
Matt Suiche, Comae Technologies <[email protected]>
The Ethereum bytecode commandline decompiler.
Decompiles the given Ethereum input bytecode and outputs the Solidity code.
Segmentation fault: 11
abi and bin code is as per https://github.com/web3j/web3j/tree/master/src/test/resources/solidity/greeter/build
See deployed code here https://ropsten.etherscan.io/tx/0x654a48e6c24548a1f6c8556747ac849ca8344499b16605b8bd3f55aa9939749d
from porosity.
@conor10 can you put the ABI and code in your comment (or a gist) as a bash script so I can easily run it?
from porosity.
https://raw.githubusercontent.com/web3j/web3j/master/src/test/resources/solidity/greeter/build/greeter.abi
https://raw.githubusercontent.com/web3j/web3j/master/src/test/resources/solidity/greeter/build/greeter.bin
https://raw.githubusercontent.com/web3j/web3j/master/src/test/resources/solidity/greeter/Greeter.sol
Build script as per https://github.com/web3j/web3j/blob/master/src/test/resources/solidity/build.sh
from porosity.
@conor10 sorry, I wanted something to copy and paste :) willing to help but limited time
from porosity.
@beaugunderson can you confirm the macOS compilation issue had been fixed with the recent pull request ?
from porosity.
@beaugunderson can you confirm the macOS compilation issue had been fixed with the recent pull request ?
I added PR #16 to finish the fix for OSX
I'll add a new PR with doc cleanup and OSX build instructions
from porosity.
Related Issues (20)
- SegmentationFault during decompilation HOT 1
- "Debug Error" errors HOT 1
- No output on decompiling with porosity HOT 1
- Read input from file
- Seg fault when decompiling Greeter Contract HOT 2
- License HOT 1
- gasLimit should be int64_t HOT 1
- Porosity wont read from my input HOT 2
- NOT_IMPLEMENTED Error when Decompiling HOT 2
- Please support XOR, REVERT, and EXTCODESIZE
- Porosity hangs on this contract
- Following bytecode creates infinite loop HOT 1
- --code-file doesn't work HOT 2
- Contract::walkAndConnectNodes : Complexity problems for large contracts. (operation lasting several days)
- The REVERT opcode is execution ending.
- make:collect2: error: ld returned 1 exit status
- fatal error: boost_multiprecision_number_compare_bug_workaround.hpp: No such file or directory
- if I don't have abi, how can I decompile ? HOT 1
- how to install porosity In MacBook
- no result decompilation for a contract bytecode without abi
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from porosity.