core/state: fix method reference error in comment

This commit is contained in:
niuxiaojie81 2024-04-24 16:59:20 +08:00
parent 938734be3c
commit 0fd2830839

View file

@ -312,7 +312,7 @@ func (s *StateDB) GetStorageRoot(addr common.Address) common.Hash {
return 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 { func (s *StateDB) TxIndex() int {
return s.txIndex return s.txIndex
} }