From 123b26fba9ba8d9681f77b077a5574808375c797 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Thu, 28 Mar 2024 13:58:54 +0100 Subject: [PATCH] review fixes --- docs/developers/evm-tracing/live-tracing.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/developers/evm-tracing/live-tracing.md b/docs/developers/evm-tracing/live-tracing.md index 9141657d29..2f410bf6b3 100644 --- a/docs/developers/evm-tracing/live-tracing.md +++ b/docs/developers/evm-tracing/live-tracing.md @@ -55,12 +55,12 @@ import ( "github.com/ethereum/go-ethereum/core/tracing" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/core/vm" - "github.com/ethereum/go-ethereum/eth/tracers/directory/live" + "github.com/ethereum/go-ethereum/eth/tracers" "gopkg.in/natefinch/lumberjack.v2" ) func init() { - live.Directory.Register("supply", newSupply) + tracers.LiveDirectory.Register("supply", newSupply) } type SupplyInfo struct { @@ -222,8 +222,8 @@ func (s *Supply) OnTxStart(vm *tracing.VMContext, tx *types.Transaction, from co s.txCallstack = make([]supplyTxCallstack, 0, 1) } -// interalTxsHandler handles internal transactions burned amount -func (s *Supply) interalTxsHandler(call *supplyTxCallstack) { +// internalTxsHandler handles internal transactions burned amount +func (s *Supply) internalTxsHandler(call *supplyTxCallstack) { // Handle Burned amount if call.burn != nil { s.delta.burn(call.burn) @@ -249,7 +249,7 @@ func (s *Supply) OnEnter(depth int, typ byte, from common.Address, to common.Add call.burn = value } - // Append call to the callstack, so we can fill the details in CaptureExit + // Append call to the callstack, so we can fill the details in OnExit s.txCallstack = append(s.txCallstack, call) }