Skip to content

Commit

Permalink
Meticulous Release. Etica Hardfork 1, phase 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Wad committed Jan 31, 2024
1 parent 6a642c9 commit 383b2d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion params/config_crucible.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ var (
EIP6049FBlock: big.NewInt(703_150), // Deprecate SELFDESTRUCT (noop)


EticaSmartContractv2: big.NewInt(703_000), // Etica smart contract hardfork 1
EticaSmartContractv2: big.NewInt(703_000), // Etica smart contract (Meticulous, Etica Hardfork 1)

}

Expand Down
4 changes: 2 additions & 2 deletions params/mutations/etica_upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ func VerifyEticav2HeaderExtraData(config ctypes.ChainConfigurator, header *types
return nil
}

// Hardfork 1. Update Etica Smart Contract bytecode to v2
// (Meticulous, Etica Hardfork 1). Update Etica Smart Contract bytecode to v2
func ApplyEticav2(statedb *state.StateDB) {
// Apply Etica Smart Contract v2
eticav2code := statedb.GetCode(vars.EticaSmartContractAddressv2)
statedb.SetCode(vars.EticaSmartContractAddress, eticav2code)
statedb.SetNonce(vars.EticaSmartContractAddress, statedb.GetNonce(vars.EticaSmartContractAddress)+1)
}

// Hardfork 1. Update Etica Smart Contract bytecode to v2
// (Meticulous, Etica Hardfork 1). Update Etica Smart Contract bytecode to v2
func ApplyCruciblev2(statedb *state.StateDB) {
// Apply Etica Smart Contract v2
cruciblev2code := statedb.GetCode(vars.CrucibleSmartContractAddressv2)
Expand Down

0 comments on commit 383b2d5

Please sign in to comment.