Fantom-foundation / go-opera

Opera blockchain protocol secured by the Lachesis consensus algorithm
https://fantom.foundation/
GNU Lesser General Public License v3.0
283 stars 283 forks source link

Update contracts bytecodes #439

Closed mprishchepo closed 1 year ago

mprishchepo commented 1 year ago

The list of last changes:

uprendis commented 1 year ago

Hello @mprishchepo, Good day to you! Please make sure that bytecode was generated with make command in opera-sfc repo. This command does it via a docker container so that resulting bytecode would be reproducible There's no need to preserve old versions of bytecode, you can leave just the latest one. It influences only fakenet anyway, as testnet/mainnet genesis-es are already generated. In a case of some tests fail with latest bytecode, then please let me know and I'll take a look

mprishchepo commented 1 year ago

Hello @uprendis!

  1. Bytecodes are generated using go generate ./gossip/sfc_test.go command. This command calls the scripts described at the beginning of the sfc_test.go file, and in this file the build goes inside the nodejs container.

    • Bytecodes of contracts generated with the go generate ./gossip/sfc\_test.go command MATCH those bytecode generated with the make command.
  2. The bytecode versions have already been updated, and we do not store old bytecode versions here.