hyperledger / web3j-cli

Command-line interface for web3j
https://github.com/web3j/web3j-cli
Other
58 stars 29 forks source link

Issue generating Java class from truffle json #58

Open herbig opened 3 years ago

herbig commented 3 years ago

Hey folks, I'm hoping someone can help me with this. Basically trying to generate a Java contract class from the compiled JSON from Remix:

web3j generate truffle generate -t CoinFlip.json -o . -p com.mypackage
              _      _____ _ 
             | |    |____ (_)
__      _____| |__      / /_ 
\ \ /\ / / _ \ '_ \     \ \ |
 \ V  V /  __/ |_) |.___/ / |
  \_/\_/ \___|_.__/ \____/| |
                         _/ |
                        |__/ 
by Web3Labs
Generating com.mypackage.CoinFlip ... null

No output, and it just appends null to the console message for some reason.

I tried poking around in SolidityFunctionWrapperGenerator and SolidityFunctionWrapper but nothing stood out to me as being amiss. Any pointers on how to get that to work would be great!

AlexandrouR commented 3 years ago

Hi, ill test this and get back to you