Each of this tasks should be solved in an independent PR
- Refactor
GetReverseStateDiff function in `blockchain.go to return by value. Spread the change to every piece of code that interacts with this function.
- Refactor
AdaptOrderedMessageToL1 (in vm2core.go) to receive by reference and return by value
Then in sn2core.go:
- Refactor
AdaptBlock to return by value.
- Refactor
AdaptTransactionReceipt to return by value
- The same for
adaptGasConsumed
- The same for
AdaptEvent
AdaptExecutionResources
AdaptL1ToL2Message
AdaptL2ToL1Message
AdaptStateUpdate
AdaptStateDiff
- Refactor
AdaptCompiledClass by renaming it AdaptCasmClass and return by value (core.Casm instead of *core.Casm)
- Refactor
AdaptSierraClass to return by value
Each of this tasks should be solved in an independent PR
GetReverseStateDifffunction in `blockchain.go to return by value. Spread the change to every piece of code that interacts with this function.AdaptOrderedMessageToL1(invm2core.go) to receive by reference and return by valueThen in
sn2core.go:AdaptBlockto return by value.AdaptTransactionReceiptto return by valueadaptGasConsumedAdaptEventAdaptExecutionResourcesAdaptL1ToL2MessageAdaptL2ToL1MessageAdaptStateUpdateAdaptStateDiffAdaptCompiledClassby renaming itAdaptCasmClassand return by value (core.Casminstead of*core.Casm)AdaptSierraClassto return by value