From 01f8ab9733a42c27fc326655adefee67a4130a08 Mon Sep 17 00:00:00 2001 From: "Ramtin M. Seraj" Date: Wed, 3 Jan 2024 15:54:20 -0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Marius van der Wijden --- core/vm/interface.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/vm/interface.go b/core/vm/interface.go index 20e926553d..0c589cf7cb 100644 --- a/core/vm/interface.go +++ b/core/vm/interface.go @@ -34,7 +34,7 @@ type StateDB interface { // SubBalance subtracts the amount from the address's balance SubBalance(common.Address, *big.Int) - // SubBalance adds the amount to the address's balance + // AddBalance adds the amount to the address's balance AddBalance(common.Address, *big.Int) // GetBalance returns the balance for the given address // @@ -71,7 +71,7 @@ type StateDB interface { // GetRefund returns the total (gas) refund GetRefund() uint64 - // GetCommittedState returns the value for the given (address, key) pair (aka slot) using commited state only + // GetCommittedState returns the value for the given (address, key) pair (aka slot) using committed state only // // For non-existent addresses or non-existent keys it should return empty hash (common.Hash{}) GetCommittedState(addr common.Address, key common.Hash) common.Hash