web3j-cli icon indicating copy to clipboard operation
web3j-cli copied to clipboard

Issue generating Java class from truffle json

Open herbig opened this issue 5 years ago • 1 comments

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!

herbig avatar Feb 13 '21 22:02 herbig

Hi, ill test this and get back to you

AlexandrouR avatar Feb 17 '21 16:02 AlexandrouR