celo-org / op-geth

GNU Lesser General Public License v3.0
0 stars 0 forks source link

Handle migrated celo transactions #150

Closed piersy closed 2 weeks ago

piersy commented 2 weeks ago

Introduces support for encoding/decoding legacy celo transaction types.

That covers:

Additionally the transaction code has been updated to be less invasive to the op-geth repo by moving celo code into celo specific files and by removing celo specific methods added to the TxData interface.

Additionally I reversed the EthCompatible boolean field since it's used to determine how to encode a legacy tx, and if unset (I.E. EthCompatible == false) then the legacy tx would be encoded as a celo legacy tx, which of course broke a lot of tests. So now the field is called CeloLegacy and if unset the tx will be encoded as an eth compatible transaction.

palango commented 2 weeks ago

Oh, and please create a follow-up issue to add some tests.

piersy commented 2 weeks ago

Oh, and please create a follow-up issue to add some tests.

Added issue here - https://github.com/celo-org/op-geth/issues/151