Closed shun-tak closed 4 years ago
We upgraded the version of okhttp in https://github.com/web3j/web3j/releases/tag/v4.5.12 you can either use a version prior to this as it is using okhttp v3.8.1 which should be compatible with the okhttp version v3.5.0 which is what corda v4 pulls in.
web3j 4.5.11 worked very well with Corda Flow! Thank you for your great information!
_Issuetitle
Run
web3.ethSendTransaction(tx).send
doesn't work in Corda_Issuedescription
I tried to run web3j to send tx to Ethereum from Corda. However, it returned error like this
It seems okhttp3.RequestBody.create doesn't exist but I surely resolved dependencies. If it was not resolved, it should have returned NoSuchMethodError for web3j (this is confirmed).
I'm not sure but around Kotlin extension function may be a cause.
https://github.com/square/okhttp/blob/parent-4.3.1/okhttp/src/main/java/okhttp3/RequestBody.kt#L167-L175 https://github.com/web3j/web3j/blob/v4.5.15/core/src/main/java/org/web3j/protocol/http/HttpService.java#L154
_Issuecontext
I would be grateful if someone commented on this.