web3j icon indicating copy to clipboard operation
web3j copied to clipboard

@EvmTest NodeType OPEN_ETHEREUM not working

Open saugion opened this issue 2 years ago • 0 comments

@EvmTest NodeType OPEN_ETHEREUM not working

I'm writing unit tests with the node type open_ethereum (@EVMTest(type = NodeType.OPEN_ETHEREUM)), after deploying a contract with the generate java funcion Contract_name.deploy, every call against the contract returns a response equals to 0x0 even if the contract_address has been generated.

If I change the nodeType to BESU, everything works fine.

Steps To Reproduce

Use the same example provided in the documentation, with the test class annotated with @EVMTest(type = NodeType.OPEN_ETHEREUM). The result of greet.send() is empty

Expected behavior

It should return the expected values, in the same way the BESU node does

Actual behavior

There are not errors in the logs, I can see the http return code 200 both when the contract is deployed and when a call to the contract is made. But the result is null.

Environment

Describe the environment in which the issue occurs

  • Web3j version: 4.9.4 - gradle plugin
  • Java version: 17
  • Operating System: Mac Os

Additional context

Add any other context about the problem here.

  • Other libs versions: "org.web3j:web3j-unit:4.9.6"
  • "org.hyperledger.besu:plugin-api:21.7.2"

saugion avatar Mar 23 '23 19:03 saugion