From 7d3aff4dc9fd0c37a3ab4475923564784e7595ba Mon Sep 17 00:00:00 2001 From: vuittont60 <81072379+vuittont60@users.noreply.github.com> Date: Wed, 10 Jan 2024 08:37:32 +0800 Subject: [PATCH] Fix some typos (#163) --- inabox/AnvilStateGen_README.md | 2 +- inabox/deploy/deploy.go | 2 +- inabox/deploy/utils.go | 12 ++++++------ inabox/geth/run.sh | 2 +- node/node.go | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/inabox/AnvilStateGen_README.md b/inabox/AnvilStateGen_README.md index 97aa16d56..e2e199e8c 100644 --- a/inabox/AnvilStateGen_README.md +++ b/inabox/AnvilStateGen_README.md @@ -83,7 +83,7 @@ forge script script/MockRollupDeployer.s.sol:MockRollupDeployer --rpc-url http:/ 0xc5a5C42992dECbae36851359345FE25997F5C42d fb89ee77edb64bdddc6f0e840cf2265e481be2810a8868e2853243ff89bdc24e Generating variables -Test environment has succesfully deployed! +Test environment has successfully deployed! ``` Copy generated states to states directory in this repo [here](https://github.com/Layr-Labs/eigenda-devops/tree/master/charts/anvil-chain/states) diff --git a/inabox/deploy/deploy.go b/inabox/deploy/deploy.go index 801b2cd16..1d3d9dc30 100644 --- a/inabox/deploy/deploy.go +++ b/inabox/deploy/deploy.go @@ -162,7 +162,7 @@ func (env *Config) DeployExperiment() { fmt.Println("Generating variables") env.GenerateAllVariables() - fmt.Println("Test environment has succesfully deployed!") + fmt.Println("Test environment has successfully deployed!") } // TODO: Supply the test path to the runner utility diff --git a/inabox/deploy/utils.go b/inabox/deploy/utils.go index 245530b44..1ed749a21 100644 --- a/inabox/deploy/utils.go +++ b/inabox/deploy/utils.go @@ -116,7 +116,7 @@ func execYarnCmd(command string) { log.Print(out.String()) } - log.Print("yarn command ran succesfully") + log.Print("yarn command ran successfully") } // Executes a forge script with a given rpc and private key @@ -167,7 +167,7 @@ func execForgeScript(script, privateKey string, deployer *ContractDeployer, extr log.Print(out.String()) } - log.Print("Forge script ran succesfully!") + log.Print("Forge script ran successfully!") } func execBashCmd(command string) { @@ -188,7 +188,7 @@ func execBashCmd(command string) { log.Print(out.String()) } - log.Printf("bash command succeded with params: %s", cmd) + log.Printf("bash command succeeded with params: %s", cmd) } // Converts a private key to an address. @@ -208,7 +208,7 @@ func GetAddress(privateKey string) string { log.Panicf("Failed to execute cast wallet command. Err: %s", err) } - //log.Print("Cast wallet command ran succesfully") + //log.Print("Cast wallet command ran successfully") return strings.Trim(out.String(), "\n") } @@ -229,7 +229,7 @@ func CallContract(destination string, signature string, rpcUrl string) string { log.Panicf("Failed to execute cast wallet command. Err: %s", err) } - log.Print("Cast call command ran succesfully") + log.Print("Cast call command ran successfully") return strings.Trim(out.String(), "\n") } @@ -248,7 +248,7 @@ func GetLatestBlockNumber(rpcUrl string) int { log.Panicf("Failed to execute cast wallet command. Err: %s", err) } - log.Print("Cast bn command ran succesfully") + log.Print("Cast bn command ran successfully") blockNum, err := strconv.ParseInt(strings.Trim(out.String(), "\n"), 10, 0) if err != nil { log.Print(fmt.Sprint(err) + ": " + stderr.String()) diff --git a/inabox/geth/run.sh b/inabox/geth/run.sh index 57ee329fa..a88e15911 100755 --- a/inabox/geth/run.sh +++ b/inabox/geth/run.sh @@ -48,7 +48,7 @@ function setup { if [ "$#" -ne 3 ]; then tput setaf 1 echo "Usage. num-key private_keys_path geth_password_path" - echo "exmaple: setup 10 ../secrets/ecdsa_keys/private_keys_hex.txt ./secret/geth-account-password" + echo "example: setup 10 ../secrets/ecdsa_keys/private_keys_hex.txt ./secret/geth-account-password" tput sgr0 exit 1 fi diff --git a/node/node.go b/node/node.go index 6734a7310..23ead4dd9 100644 --- a/node/node.go +++ b/node/node.go @@ -323,7 +323,7 @@ func (n *Node) ProcessBatch(ctx context.Context, header *core.BatchHeader, blobs return nil, err } - // Sign batch header hash if all validation checks pass and data items are writen to database. + // Sign batch header hash if all validation checks pass and data items are written to database. stageTimer = time.Now() sig := n.KeyPair.SignMessage(batchHeaderHash) log.Trace("Signed batch header hash", "pubkey", hexutil.Encode(n.KeyPair.GetPubKeyG2().Serialize()))