After the upstream merge of v1.3.0, my PR (https://github.com/bnb-chain/opbnb/pull/73) for starting devnet locally no longer works. We need to be able to start devnet locally, so I made fixes based on the code from upstream merge v1.3.0.
Rationale
The biggest change is the process of contract deployment, where the upstream code uses Foundry instead of Hardhat. I have done a lot of learning and adaptation work on this. I have adapted it to work on the BSC network.
Example
The method used by devnet is the same as before, now in addition to using make devnet-up-deploy, you can also use make devnet-up to start devnet.
Changes
Notable changes:
Modify python script to start devnet
Modify dockercompose file to start devnet
There was some code conflict in the metrics of batcher and proposer, I resolved it
The last line of the DialEthClientWithTimeoutAndFallback method referenced the wrong variable, I corrected it
The deployment contract did not adapt to the chainId of bsc devnet, I added bsc adaptation
Description
After the upstream merge of v1.3.0, my PR (https://github.com/bnb-chain/opbnb/pull/73) for starting devnet locally no longer works. We need to be able to start devnet locally, so I made fixes based on the code from upstream merge v1.3.0.
Rationale
The biggest change is the process of contract deployment, where the upstream code uses Foundry instead of Hardhat. I have done a lot of learning and adaptation work on this. I have adapted it to work on the BSC network.
Example
The method used by devnet is the same as before, now in addition to using
make devnet-up-deploy
, you can also usemake devnet-up
to start devnet.Changes
Notable changes: