From 3a94b098aabf57db3f472ef03615dd52ed05675e Mon Sep 17 00:00:00 2001 From: Raul Jordan Date: Wed, 16 May 2018 13:17:08 -0400 Subject: [PATCH] sharding: remove .String() from big.Int usage Former-commit-id: 67861149005f0d5184d4d1c7658796a99db307b6 [formerly 81952e0c4bfd9f4048b6c8feaed9d3189296c467] Former-commit-id: 4b6ba49e85a83a39e82bbab42aeedbdf7521408d --- sharding/shard.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharding/shard.go b/sharding/shard.go index fb38cc829..91ef580eb 100644 --- a/sharding/shard.go +++ b/sharding/shard.go @@ -248,6 +248,6 @@ func dataAvailabilityLookupKey(chunkRoot *common.Hash) common.Hash { // of the shard for ease of use. func canonicalCollationLookupKey(shardID *big.Int, period *big.Int) common.Hash { str := "canonical-collation-lookup:shardID=%s,period=%s" - key := fmt.Sprintf(str, shardID.String(), period.String()) + key := fmt.Sprintf(str, shardID, period) return common.BytesToHash([]byte(key)) }