sharding: remove .String() from big.Int usage

Former-commit-id: 67861149005f0d5184d4d1c7658796a99db307b6 [formerly 81952e0c4bfd9f4048b6c8feaed9d3189296c467]
Former-commit-id: 4b6ba49e85a83a39e82bbab42aeedbdf7521408d
This commit is contained in:
Raul Jordan 2018-05-16 13:17:08 -04:00
parent 8aa993da5b
commit 3a94b098aa

View File

@ -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))
}