Closed ocoderr closed 3 years ago
web3j generate java code from compound Comptroller contract abi has error
Comptroller ABI https://compound.finance/docs/abi/mainnet/Comptroller
web3j solidity generate -a=Comptroller.abi -o=/src/main/java -p=com.compound.eth.contract
generate valid java code.
web3j generate java class have error
Describe the environment in which the issue occurs
Web3j version Version: 4.5.16 Build timestamp: 2020-03-06 14:13:49.943 UTC
Java or Android version Java 1.8
Operating System macos
web3j output : Warning: Duplicate field(s) found: [FUNCSETCLOSEFACTOR, FUNC_PAUSEGUARDIAN, FUNC_LIQUIDATEBORROWVERIFY, FUNCSETBORROWPAUSED, FUNC_ENTERMARKETS, FUNC_TRANSFERGUARDIANPAUSED, FUNC_ADMIN, FUNC_SEIZEALLOWED, FUNC_MINTALLOWED, FUNCBORROWGUARDIANPAUSED, FUNCSETMAXASSETS, FUNCSETTRANSFERPAUSED, FUNC_LIQUIDATECALCULATESEIZETOKENS, FUNC_LIQUIDATEBORROWALLOWED, FUNC_REPAYBORROWVERIFY, FUNC_EXITMARKET, FUNCMINTGUARDIANPAUSED, FUNC_REDEEMALLOWED, FUNC_MARKETS, FUNCSETPRICEORACLE, FUNCSETMINTPAUSED, FUNC_SEIZEGUARDIANPAUSED, FUNC_REDEEMVERIFY, FUNCBECOME, FUNC_GETASSETSIN, FUNCSETLIQUIDATIONINCENTIVE, FUNC_CHECKMEMBERSHIP, FUNC_SEIZEVERIFY, FUNCSETSEIZEPAUSED, FUNC_ORACLE, FUNC_BORROWALLOWED, FUNC_TRANSFERALLOWED, FUNC_ACCOUNTASSETS, FUNC_MINTVERIFY, FUNC_BORROWGUARDIANPAUSED, FUNC_MINTGUARDIANPAUSED, FUNCSETPAUSEGUARDIAN, FUNC_PENDINGCOMPTROLLERIMPLEMENTATION, FUNC_LIQUIDATIONINCENTIVEMANTISSA, FUNC_PENDINGADMIN, FUNC_MAXASSETS, FUNC_TRANSFERVERIFY, FUNC_COMPTROLLERIMPLEMENTATION, FUNC_BORROWVERIFY, FUNC_GETACCOUNTLIQUIDITY, FUNC_ISCOMPTROLLER, FUNC_CLOSEFACTORMANTISSA, FUNC_REPAYBORROWALLOWED, FUNCSETCOLLATERALFACTOR, FUNCSUPPORTMARKET]. Please don't use names which will be the same in uppercase.
@ocoderr This is not really a but a warning displayed by the CLI. Using the latest version of CLI this is resolved. There are some warnings still but fewer and also the generation of the wrappers is not stopped.
_Bugtitle
web3j generate java code from compound Comptroller contract abi has error
Steps To Reproduce
Comptroller ABI https://compound.finance/docs/abi/mainnet/Comptroller
web3j solidity generate -a=Comptroller.abi -o=/src/main/java -p=com.compound.eth.contract
Expected behavior
generate valid java code.
Actual behavior
web3j generate java class have error
Environment
Describe the environment in which the issue occurs
Web3j version Version: 4.5.16 Build timestamp: 2020-03-06 14:13:49.943 UTC
Java or Android version Java 1.8
Operating System macos
Additional context
web3j output : Warning: Duplicate field(s) found: [FUNCSETCLOSEFACTOR, FUNC_PAUSEGUARDIAN, FUNC_LIQUIDATEBORROWVERIFY, FUNCSETBORROWPAUSED, FUNC_ENTERMARKETS, FUNC_TRANSFERGUARDIANPAUSED, FUNC_ADMIN, FUNC_SEIZEALLOWED, FUNC_MINTALLOWED, FUNCBORROWGUARDIANPAUSED, FUNCSETMAXASSETS, FUNCSETTRANSFERPAUSED, FUNC_LIQUIDATECALCULATESEIZETOKENS, FUNC_LIQUIDATEBORROWALLOWED, FUNC_REPAYBORROWVERIFY, FUNC_EXITMARKET, FUNCMINTGUARDIANPAUSED, FUNC_REDEEMALLOWED, FUNC_MARKETS, FUNCSETPRICEORACLE, FUNCSETMINTPAUSED, FUNC_SEIZEGUARDIANPAUSED, FUNC_REDEEMVERIFY, FUNCBECOME, FUNC_GETASSETSIN, FUNCSETLIQUIDATIONINCENTIVE, FUNC_CHECKMEMBERSHIP, FUNC_SEIZEVERIFY, FUNCSETSEIZEPAUSED, FUNC_ORACLE, FUNC_BORROWALLOWED, FUNC_TRANSFERALLOWED, FUNC_ACCOUNTASSETS, FUNC_MINTVERIFY, FUNC_BORROWGUARDIANPAUSED, FUNC_MINTGUARDIANPAUSED, FUNCSETPAUSEGUARDIAN, FUNC_PENDINGCOMPTROLLERIMPLEMENTATION, FUNC_LIQUIDATIONINCENTIVEMANTISSA, FUNC_PENDINGADMIN, FUNC_MAXASSETS, FUNC_TRANSFERVERIFY, FUNC_COMPTROLLERIMPLEMENTATION, FUNC_BORROWVERIFY, FUNC_GETACCOUNTLIQUIDITY, FUNC_ISCOMPTROLLER, FUNC_CLOSEFACTORMANTISSA, FUNC_REPAYBORROWALLOWED, FUNCSETCOLLATERALFACTOR, FUNCSUPPORTMARKET]. Please don't use names which will be the same in uppercase.