From 214e2092949efa3b607ad7459da9a9a5a235ad27 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Wed, 17 Jan 2024 16:11:59 +0330 Subject: [PATCH] minor rename: --- internal/ethapi/simulate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/ethapi/simulate.go b/internal/ethapi/simulate.go index 58f5d83400..9e40bf3144 100644 --- a/internal/ethapi/simulate.go +++ b/internal/ethapi/simulate.go @@ -63,7 +63,7 @@ type simBlockResult struct { Calls []simCallResult `json:"calls"` } -func mcBlockResultFromHeader(header *types.Header, callResults []simCallResult) simBlockResult { +func simBlockResultFromHeader(header *types.Header, callResults []simCallResult) simBlockResult { return simBlockResult{ Number: hexutil.Uint64(header.Number.Uint64()), Hash: header.Hash(), @@ -242,7 +242,7 @@ func (sim *simulator) execute(ctx context.Context, opts simOpts) ([]simBlockResu header.ReceiptHash = types.DeriveSha(types.Receipts(receipts), trie.NewStackTrie(nil)) header.Bloom = types.CreateBloom(types.Receipts(receipts)) } - results[bi] = mcBlockResultFromHeader(header, callResults) + results[bi] = simBlockResultFromHeader(header, callResults) repairLogs(results, header.Hash()) } return results, nil