Skip to content

Commit 98f41d7

Browse files
committed
Update CommitScalarSlot to ExecScalarSlot
1 parent 3d50dd1 commit 98f41d7

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

consensus/misc/curie.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ func ApplyCurieHardFork(statedb *state.StateDB) {
1818
// initialize new storage slots
1919
statedb.SetState(rcfg.L1GasPriceOracleAddress, rcfg.IsCurieSlot, common.BytesToHash([]byte{1}))
2020
statedb.SetState(rcfg.L1GasPriceOracleAddress, rcfg.L1BlobBaseFeeSlot, common.BytesToHash([]byte{1}))
21-
statedb.SetState(rcfg.L1GasPriceOracleAddress, rcfg.CommitScalarSlot, common.BigToHash(rcfg.InitialCommitScalar))
21+
statedb.SetState(rcfg.L1GasPriceOracleAddress, rcfg.ExecScalarSlot, common.BigToHash(rcfg.InitialCommitScalar))
2222
statedb.SetState(rcfg.L1GasPriceOracleAddress, rcfg.BlobScalarSlot, common.BigToHash(rcfg.InitialBlobScalar))
2323
}

core/blockchain_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3757,7 +3757,7 @@ func TestCurieTransition(t *testing.T) {
37573757
poseidonCodeHash := statedb.GetPoseidonCodeHash(rcfg.L1GasPriceOracleAddress)
37583758

37593759
l1BlobBaseFee := statedb.GetState(rcfg.L1GasPriceOracleAddress, rcfg.L1BlobBaseFeeSlot)
3760-
commitScalar := statedb.GetState(rcfg.L1GasPriceOracleAddress, rcfg.CommitScalarSlot)
3760+
commitScalar := statedb.GetState(rcfg.L1GasPriceOracleAddress, rcfg.ExecScalarSlot)
37613761
blobScalar := statedb.GetState(rcfg.L1GasPriceOracleAddress, rcfg.BlobScalarSlot)
37623762
isCurie := statedb.GetState(rcfg.L1GasPriceOracleAddress, rcfg.IsCurieSlot)
37633763

ethclient/ethclient_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ var genesis = &core.Genesis{
201201
rcfg.OverheadSlot: common.BigToHash(big.NewInt(10000)),
202202
rcfg.ScalarSlot: common.BigToHash(big.NewInt(10000)),
203203
rcfg.L1BlobBaseFeeSlot: common.BigToHash(big.NewInt(10000)),
204-
rcfg.CommitScalarSlot: common.BigToHash(big.NewInt(10000)),
204+
rcfg.ExecScalarSlot: common.BigToHash(big.NewInt(10000)),
205205
rcfg.BlobScalarSlot: common.BigToHash(big.NewInt(10000)),
206206
rcfg.IsCurieSlot: common.BytesToHash([]byte{1}),
207207
},

ethclient/gethclient/gethclient_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func generateTestChain() (*core.Genesis, []*types.Block) {
8585
rcfg.OverheadSlot: common.BigToHash(big.NewInt(10000)),
8686
rcfg.ScalarSlot: common.BigToHash(big.NewInt(10000)),
8787
rcfg.L1BlobBaseFeeSlot: common.BigToHash(big.NewInt(10000)),
88-
rcfg.CommitScalarSlot: common.BigToHash(big.NewInt(10000)),
88+
rcfg.ExecScalarSlot: common.BigToHash(big.NewInt(10000)),
8989
rcfg.BlobScalarSlot: common.BigToHash(big.NewInt(10000)),
9090
rcfg.IsCurieSlot: common.BytesToHash([]byte{1}),
9191
},

rollup/fees/rollup_fee.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func readGPOStorageSlots(addr common.Address, state StateDB) gpoState {
166166
gpoState.overhead = state.GetState(addr, rcfg.OverheadSlot).Big()
167167
gpoState.scalar = state.GetState(addr, rcfg.ScalarSlot).Big()
168168
gpoState.l1BlobBaseFee = state.GetState(addr, rcfg.L1BlobBaseFeeSlot).Big()
169-
gpoState.execScalar = state.GetState(addr, rcfg.CommitScalarSlot).Big()
169+
gpoState.execScalar = state.GetState(addr, rcfg.ExecScalarSlot).Big()
170170
gpoState.blobScalar = state.GetState(addr, rcfg.BlobScalarSlot).Big()
171171
return gpoState
172172
}

rollup/rcfg/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var (
3232

3333
// New fields added in the Curie hard fork
3434
L1BlobBaseFeeSlot = common.BigToHash(big.NewInt(5))
35-
CommitScalarSlot = common.BigToHash(big.NewInt(6))
35+
ExecScalarSlot = common.BigToHash(big.NewInt(6))
3636
BlobScalarSlot = common.BigToHash(big.NewInt(7))
3737
IsCurieSlot = common.BigToHash(big.NewInt(8))
3838

rollup/tracing/tracing.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ func (env *TraceEnv) fillBlockTrace(block *types.Block) (*types.BlockTrace, erro
543543
rcfg.OverheadSlot,
544544
rcfg.ScalarSlot,
545545
rcfg.L1BlobBaseFeeSlot,
546-
rcfg.CommitScalarSlot,
546+
rcfg.ExecScalarSlot,
547547
rcfg.BlobScalarSlot,
548548
rcfg.IsCurieSlot,
549549
},

0 commit comments

Comments
 (0)