fix: rpc method error in state network

This commit is contained in:
fearlessfe 2024-10-19 10:59:08 +08:00 committed by Chen Kai
parent 86c1b7d12e
commit 4587ceb69d

View file

@ -197,7 +197,7 @@ func (h *StateNetwork) getStateRoot(blockHash common.Bytes32) (common.Bytes32, e
arg := hexutil.Encode(contentKey)
res := &discover.ContentInfo{}
err := h.client.CallContext(ctx, res, "portal_historyRecursiveFindContent", arg)
err := h.client.CallContext(ctx, res, "portal_historyGetContent", arg)
if err != nil {
return common.Bytes32{}, err
}