Closed jeremyGrelaud closed 10 months ago
Hi there - in your custom genesis, have you specified milestone blocks that are up to date for the op-codes you're using in the smart contract?
There is some detail here: https://besu.hyperledger.org/public-networks/reference/genesis-items#milestone-blocks
If you are attempting to use an older milestone (i.e. before a certain fork), the EVM will revert the tx if it encounters a newer piece of functionality in the smart contract.
Indeed I used "BerlinBlock" and I see that the latest EVM version seems to be Shangai. Is it possible to directly change this configuration in the genesis file or do we need to make some kind of transition ?
I'll try tomorrow to see if the problem was linked to an incompatible EVM version.
Edit : I tried specifying the right compiler version in my smart contract and using the evm-version option of the solc command to generate the abi, bin and json files but I end up getting the same error (my transaction reverted by the EVM).
By Following this tutorial (https://github.com/lacchain/besu-pro-testnet/blob/master/DEPLOY_APPLICATIONS.md#web3) I was able to deploy a contract on my private blockchain just like I did with remix and metamask. I just add to adjust the amount of gas for my transaction. I wonder If the problem in the case of the issue is due to gas or compiler version ...
Indeed I used "BerlinBlock" and I see that the latest EVM version seems to be Shangai. Is it possible to directly change this configuration in the genesis file or do we need to make some kind of transition ?
I'll try tomorrow to see if the problem was linked to an incompatible EVM version.
Edit : I tried specifying the right compiler version in my smart contract and using the evm-version option of the solc command to generate the abi, bin and json files but I end up getting the same error (my transaction reverted by the EVM).
By Following this tutorial (https://github.com/lacchain/besu-pro-testnet/blob/master/DEPLOY_APPLICATIONS.md#web3) I was able to deploy a contract on my private blockchain just like I did with remix and metamask. I just add to adjust the amount of gas for my transaction. I wonder If the problem in the case of the issue is due to gas or compiler version ...
Hello, I also encountered the same problem, looking at the EVM source code, found that the virtual machine has executed the operation code REVERT and returned... Now I don't know how to deal with it, can you help me?
Description
Hi, I am trying to deploy a smart contract in my private besu network (IBFT 2.0) but the transaction to do so is being reverted by the EVM. I was succesfully able to deploy the same smart contract with remix and then interract with it as described in the besu documentation with a js script.
Acceptance Criteria
Steps to Reproduce (Bug)
Compile the smart contract with a compile.js file just like the documentation and generating the bin and abi with solc
Creating a public_tx.js file
Expected behavior: The smart contract to be deployed successfully when running the public_tx.js file
Actual behavior:
II tried to change the gas and log every data in the script and it seems correctly initialized. So I don't know if it's an error of logic in the public_tx.js or a problem of configuration of my besu network. (or something else)
Frequency: Always
Versions
Smart contract information