-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compile solidity error #18
Comments
Hi, the contract If you install If you want to do it yourself you can change version 4.1.2 to 4.1.3 in the plugins section of the Gradle build file: plugins {
id 'java'
id 'org.web3j' version '4.1.3'
} |
Thank you for your answer! ----------------------log ---------------errors: |
@xaviarias @AlexandrouR Maybe,I know why program run timeout。 The problem is in the transfer.java ;
It's only in the debug model show ,and the file(transfer.java) is readonly ,I can't modify and test . May it's the bug in the testnet Rinkeby, following is the debug info : =====================log debug model This is one transaction by progam sended: |
@kworldljd The best way to see if this is an issue with the Rinkeby network is to use ganache can you please to do that and tell me if the transaction passes ? |
ok, I will use ganache to test tomorrow. Today, I read the Transfer.java and retry to use another sendFunds function that can set gasprice and gaslimit. the following is the test code. I set gasprice is 10, but it does not work again, program is still timeout. the transaction is pending(https://rinkeby.etherscan.io/tx/0x2b9d99db4e1c6039b629267d873dec79defe774156fc6b78b9a52de99f3b4f2c) I use the metamask the same value, the transaction is ok. the Rinkeby is ok, maybe is the problem of infura.io There are no more details to locate where is the bug . It is horrible! |
Today, I use ganache replace Rinkeby, it looks everything work well . But retry in Rinkeby, sendFunds doesn't work again. Transaction is always pending. and program is timeout . |
@AlexandrouR my code is checked in https://github.com/kworldljd/sample-project-gradle |
@kworldljd I replicated your code and also send a few transactions using a few alternatives. The result was the same on Ganache and Metamask was able to send the transaction on Rinkeby. I will test on geth --rinkeby. |
I use infura to connect the testnet Rinkeby. |
@AlexandrouR @xaviarias Refresh the question。It's the problem of my wallet file. Why? What is the problem of the prior wallet file created by the same web3j command line tools , according to the offical document ? |
the main question is "There were no any tips on the debug model. The terminate was only showing that getting the transaction's result was null and then timeout." with on Rinkeby and it works well on ganache. it takes my care, and then I can't fix what's the problem The following are the wallet files. The new wallet password:111111, the prior wallet password:web3j.io new wallet fileUTC--2019-08-15T15-21-33.293059500Z--e6724addbd9a1c0f23673e5b583780e0e51e4204.zip the prior wallet file : |
download solc and put in the root directory of project .
then command run grandlew.bat build then show error:
Error: Source file requires different compiler version (current compiler is 0.5.10+commit.5a6ea5b1.Windows.msvc - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.25;
change the pragma solidity >0.4.25 then get more errors.
please update solidity file.
The text was updated successfully, but these errors were encountered: