Giter Club home page Giter Club logo

Comments (10)

beaugunderson avatar beaugunderson commented on June 20, 2024 1

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.

vors avatar vors commented on June 20, 2024

That would make a good pool request :)

from porosity.

msuiche avatar msuiche commented on June 20, 2024

Yes, pull request please :)

from porosity.

reiven avatar reiven commented on June 20, 2024

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.

conor10 avatar conor10 commented on June 20, 2024

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.

beaugunderson avatar beaugunderson commented on June 20, 2024

@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.

conor10 avatar conor10 commented on June 20, 2024

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.

beaugunderson avatar beaugunderson commented on June 20, 2024

@conor10 sorry, I wanted something to copy and paste :) willing to help but limited time

from porosity.

msuiche avatar msuiche commented on June 20, 2024

@beaugunderson can you confirm the macOS compilation issue had been fixed with the recent pull request ?

from porosity.

genecyber avatar genecyber commented on June 20, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.