From 1f1125379c534509bc494989a200d854d48478fb Mon Sep 17 00:00:00 2001 From: Shane Bammel Date: Sat, 14 Jan 2023 14:34:10 -0600 Subject: [PATCH] Fix comments --- pulse/deposit_contract.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pulse/deposit_contract.go b/pulse/deposit_contract.go index 6a58a044e..d3e7d7f48 100644 --- a/pulse/deposit_contract.go +++ b/pulse/deposit_contract.go @@ -54,22 +54,22 @@ var ( // Destroys & disables the Ethereum deposit contract and deploys the PulseChain deposit contract. func replaceDepositContract(state *state.StateDB) { - // destroy the old contract + // Destroy the old contract state.Suicide(ethereumDepositContractAddr) state.SetCode(ethereumDepositContractAddr, nilContractBytes) log.Info("ETH2 deposit contract destroyed 💀") - // reset balance if any + // Reset balance if any state.SetBalance(pulseDepositContractAddr, big.NewInt(0)) - // initialise zero hash array in the new deposit contract + // Initialise zero hash array in the new deposit contract for i := 0; i < len(depositContractStorage); i++ { hash := common.HexToHash(depositContractStorage[i][0]) value := common.HexToHash(depositContractStorage[i][1]) state.SetState(pulseDepositContractAddr, hash, value) } - // deploy the new contract code + // Deploy the new contract code state.SetCode(pulseDepositContractAddr, depositContractBytes) log.Info("Deployed new beacon deposit contract ✨", "address", pulseDepositContractAddr) }