mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
typo interalTxsHandler->internalTxsHandler
This commit is contained in:
parent
fb0160ba9f
commit
6e7f5bcd05
1 changed files with 4 additions and 4 deletions
|
|
@ -181,8 +181,8 @@ func (s *supply) OnTxStart(vm *tracing.VMContext, tx *types.Transaction, from co
|
||||||
s.txCallstack = make([]supplyTxCallstack, 0, 1)
|
s.txCallstack = make([]supplyTxCallstack, 0, 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// interalTxsHandler handles internal transactions burned amount
|
// internalTxsHandler handles internal transactions burned amount
|
||||||
func (s *supply) interalTxsHandler(call *supplyTxCallstack) {
|
func (s *supply) internalTxsHandler(call *supplyTxCallstack) {
|
||||||
// Handle Burned amount
|
// Handle Burned amount
|
||||||
if call.burn != nil {
|
if call.burn != nil {
|
||||||
s.delta.burn(call.burn)
|
s.delta.burn(call.burn)
|
||||||
|
|
@ -192,7 +192,7 @@ func (s *supply) interalTxsHandler(call *supplyTxCallstack) {
|
||||||
// Recursivelly handle internal calls
|
// Recursivelly handle internal calls
|
||||||
for _, call := range call.calls {
|
for _, call := range call.calls {
|
||||||
callCopy := call
|
callCopy := call
|
||||||
s.interalTxsHandler(&callCopy)
|
s.internalTxsHandler(&callCopy)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -216,7 +216,7 @@ func (s *supply) OnExit(depth int, output []byte, gasUsed uint64, err error, rev
|
||||||
if depth == 0 {
|
if depth == 0 {
|
||||||
// No need to handle Burned amount if transaction is reverted
|
// No need to handle Burned amount if transaction is reverted
|
||||||
if !reverted {
|
if !reverted {
|
||||||
s.interalTxsHandler(&s.txCallstack[0])
|
s.internalTxsHandler(&s.txCallstack[0])
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue