From cda966a51873e5d41c6d5c483513d5e28844d3c4 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Tue, 21 Mar 2023 17:21:04 +0800 Subject: [PATCH] models: string for storage_cids.state_leaf_key --- statediff/indexer/database/file/indexer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statediff/indexer/database/file/indexer.go b/statediff/indexer/database/file/indexer.go index 2586dc993..bd5241f17 100644 --- a/statediff/indexer/database/file/indexer.go +++ b/statediff/indexer/database/file/indexer.go @@ -443,7 +443,7 @@ func (sdi *StateDiffIndexer) PushStateNode(batch interfaces.Batch, stateNode sdt storageModel := models.StorageNodeModel{ BlockNumber: tx.BlockNumber, HeaderID: headerID, - StateKey: common.BytesToHash(stateNode.AccountWrapper.LeafKey).Hex(), + StateKey: common.BytesToHash(stateNode.AccountWrapper.LeafKey).String(), StorageKey: common.BytesToHash(storageNode.LeafKey).String(), CID: storageNode.CID, Removed: false,