From 2b804cdc354535f25098e9c3e195f0871fb37198 Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Thu, 23 Sep 2021 09:14:00 +0700 Subject: [PATCH] save (#2722) --- core/types/accounts/account_benchmark_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/types/accounts/account_benchmark_test.go b/core/types/accounts/account_benchmark_test.go index 2a5edfe8a..fe3117520 100644 --- a/core/types/accounts/account_benchmark_test.go +++ b/core/types/accounts/account_benchmark_test.go @@ -268,12 +268,12 @@ func BenchmarkDecodingAccount(b *testing.B) { b.ResetTimer() for _, test := range accountCases { test := test - encodedAccount := make([]byte, test.acc.EncodingLengthForStorage()) b.Run(fmt.Sprint(test.name), func(b *testing.B) { for i := 0; i < b.N; i++ { b.StopTimer() test.acc.Nonce = uint64(i) test.acc.Balance.SetUint64(uint64(i)) + encodedAccount := make([]byte, test.acc.EncodingLengthForStorage()) test.acc.EncodeForStorage(encodedAccount)