尝试通过SolidityCompiler.Result res = SolidityCompiler.compile(byte[] source, boolean sm, boolean combinedJson, Option... options)方法编译智能合约。
入参为SolidityCompiler.Result res = SolidityCompiler.compile(contractSourceByteArr, true, true, ABI,
BIN, INTERFACE, METADATA);
其中contractSourceByteArr为合约的byte[],合约在前置服务提供的界面中可以编译成功,通过上面的方法进行编译报错信息为:No input files given. If you wish to use the standard input please specify "-" explicitly.
maven引入依赖:
尝试通过SolidityCompiler.Result res = SolidityCompiler.compile(byte[] source, boolean sm, boolean combinedJson, Option... options)方法编译智能合约。 入参为SolidityCompiler.Result res = SolidityCompiler.compile(contractSourceByteArr, true, true, ABI, BIN, INTERFACE, METADATA); 其中contractSourceByteArr为合约的byte[],合约在前置服务提供的界面中可以编译成功,通过上面的方法进行编译报错信息为:No input files given. If you wish to use the standard input please specify "-" explicitly.
无法定位错误的原因。
上面是我的智能合约。