aligned_layer
aligned_layer copied to clipboard
perf: reorder + delete AlignedLayerServiceManagerStorage BatchState struct
Currently
struct BatchState {
uint32 taskCreatedBlock;
bool responded;
address batcherAddress;
}
should be
struct BatchState {
address batcherAddress;
uint32 taskCreatedBlock;
bool responded;
}
Also, batcherAddress should be deleted after its use, at the end of respondToTask.
This reduces gas consumption but breaks the past storage of this contract. This is not a problem since this is why we use testnet. Also, the explorer will be unaffected by this.