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

failed to generate solidity

Open iaskwho opened this issue 4 years ago • 3 comments

hi, uniswap contract generate java wrappers error,the abi code is here:https://etherscan.io/address/0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f#code

error,not a valid name:

➜  ~/Downloads/web3j-1.4.1/bin ./web3j generate solidity -a uni.abi -o ./ -p com.test
              _      _____ _ 
             | |    |____ (_)
__      _____| |__      / /_ 
\ \ /\ / / _ \ '_ \     \ \ |
 \ V  V /  __/ |_) |.___/ / |
  \_/\_/ \___|_.__/ \____/| |
                         _/ |
                        |__/ 
by Web3Labs
Generating com.test.Uni ... not a valid name: 

iaskwho avatar May 25 '21 08:05 iaskwho

same problem here on windows:

PS C:\Users\jacob\Development\uniswap-v2-core\contracts\output> web3j generate solidity -b UniswapV2Factory.bin -a UniswapV2Factory.abi -o .\output\java -p jacob.blockchain.arbitrageBot.contracts _ _____ _ | | |____ () __ _| | / / \ \ /\ / / _ \ ' \ \ \ | \ V V / __/ |) |./ / | _/_/ _|./ _/| | _/ | |_/ by Web3Labs Generating jacob.blockchain.arbitrageBot.contracts.UniswapV2Factory ... not a valid name:

jacoblogananderson avatar May 28 '21 02:05 jacoblogananderson

https://bscscan.com/address/0xca143ce32fe78f1f7019d7d551a6402fc5350c73#code I have the same problem

fastener avatar Sep 13 '21 10:09 fastener

check my answer here

joelcho avatar Jan 04 '22 04:01 joelcho