From 3d62d057f87afeca0a1e03fe83fc2d3221a577e4 Mon Sep 17 00:00:00 2001 From: Hyoung-yoon Kim Date: Thu, 21 Dec 2023 15:21:00 +0900 Subject: [PATCH] chore: minor comment fix --- Makefile | 5 +++++ x/randomness/keeper/abci.go | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c8d9655e..39088b6a 100644 --- a/Makefile +++ b/Makefile @@ -211,11 +211,16 @@ cover-html: test-unit-cover @echo "--> Opening in the browser" @go tool cover -html=$(TEST_COVERAGE_PROFILE) +ifdef GITHUB_TOKEN docker-build-e2e: @docker build \ --build-arg GITHUB_TOKEN=$(GITHUB_TOKEN) \ -t sedaprotocol/seda-chaind-e2e \ -f dockerfiles/Dockerfile.e2e . +else +docker-build-e2e: + @echo "Error: GITHUB_TOKEN variable required to build e2e image" +endif .PHONY: cover-html run-tests $(TEST_TARGETS) test test-race docker-build-e2e diff --git a/x/randomness/keeper/abci.go b/x/randomness/keeper/abci.go index 24e9efbe..2d50fc12 100644 --- a/x/randomness/keeper/abci.go +++ b/x/randomness/keeper/abci.go @@ -40,7 +40,7 @@ func (h *ProposalHandler) PrepareProposalHandler( return nil, fmt.Errorf("vrf signer is nil") } - // Default prepare proposal - check max block gas and req.MaxTxBytes + // default prepare proposal - check max block gas and req.MaxTxBytes var maxBlockGas uint64 if b := ctx.ConsensusParams().Block; b != nil { maxBlockGas = uint64(b.MaxGas) @@ -132,6 +132,7 @@ func (h *ProposalHandler) ProcessProposalHandler( } } + // process the NewSeed tx tx, err := h.txVerifier.TxDecode(req.Txs[0]) if err != nil { return nil, err