bnb-chain / opbnb

MIT License
403 stars 163 forks source link

feat(devnet): fix devent after merge 1.3.0 #123

Closed welkin22 closed 8 months ago

welkin22 commented 8 months ago

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 use make devnet-up to start devnet.

Changes

Notable changes: