core/types: fixed typo (#21897)

This commit is contained in:
Marius van der Wijden 2020-11-25 08:53:20 +01:00 committed by GitHub
parent 59b480ab4b
commit 29efe1fc7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -213,7 +213,7 @@ func (tx *Transaction) Hash() common.Hash {
} }
// Size returns the true RLP encoded storage size of the transaction, either by // Size returns the true RLP encoded storage size of the transaction, either by
// encoding and returning it, or returning a previsouly cached value. // encoding and returning it, or returning a previously cached value.
func (tx *Transaction) Size() common.StorageSize { func (tx *Transaction) Size() common.StorageSize {
if size := tx.size.Load(); size != nil { if size := tx.size.Load(); size != nil {
return size.(common.StorageSize) return size.(common.StorageSize)