diff --git a/core/state/statedb.go b/core/state/statedb.go index ab152dd18d..f9c1603f02 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -312,7 +312,7 @@ func (s *StateDB) GetStorageRoot(addr common.Address) common.Hash { return common.Hash{} } -// TxIndex returns the current transaction index set by Prepare. +// TxIndex returns the current transaction index set by SetTxContext. func (s *StateDB) TxIndex() int { return s.txIndex }