From f942d48e3ac3c2e15b43237dc273749cf82ad9f2 Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Mon, 17 Aug 2020 16:58:28 +0100 Subject: [PATCH] fix tests build failures with go1.15 --- types/coin_benchmark_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/coin_benchmark_test.go b/types/coin_benchmark_test.go index 34e93d6229e4..6ceaaf35e598 100644 --- a/types/coin_benchmark_test.go +++ b/types/coin_benchmark_test.go @@ -12,10 +12,10 @@ func BenchmarkCoinsAdditionIntersect(b *testing.B) { coinsB := Coins(make([]Coin, numCoinsB)) for i := 0; i < numCoinsA; i++ { - coinsA[i] = NewCoin("COINZ_"+string(i), NewInt(int64(i))) + coinsA[i] = NewCoin("COINZ_"+fmt.Sprint(i), NewInt(int64(i))) } for i := 0; i < numCoinsB; i++ { - coinsB[i] = NewCoin("COINZ_"+string(i), NewInt(int64(i))) + coinsB[i] = NewCoin("COINZ_"+fmt.Sprint(i), NewInt(int64(i))) } b.ResetTimer() @@ -41,10 +41,10 @@ func BenchmarkCoinsAdditionNoIntersect(b *testing.B) { coinsB := Coins(make([]Coin, numCoinsB)) for i := 0; i < numCoinsA; i++ { - coinsA[i] = NewCoin("COINZ_"+string(numCoinsB+i), NewInt(int64(i))) + coinsA[i] = NewCoin("COINZ_"+fmt.Sprint(numCoinsB+i), NewInt(int64(i))) } for i := 0; i < numCoinsB; i++ { - coinsB[i] = NewCoin("COINZ_"+string(i), NewInt(int64(i))) + coinsB[i] = NewCoin("COINZ_"+fmt.Sprint(i), NewInt(int64(i))) } b.ResetTimer()