Skip to content

Commit

Permalink
fix to read apis properly
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Aug 16, 2024
1 parent 9f3f3c8 commit 5b6f6ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jsonrpc/config/config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package config

import (
"strings"
"time"

"github.com/spf13/cast"
Expand Down Expand Up @@ -136,7 +137,7 @@ func GetConfig(appOpts servertypes.AppOptions) JSONRPCConfig {
EnableWS: cast.ToBool(appOpts.Get(flagJSONRPCEnableWS)),
AddressWS: cast.ToString(appOpts.Get(flagJSONRPCAddressWS)),
EnableUnsafeCORS: cast.ToBool(appOpts.Get(flagJSONRPCEnableUnsafeCORS)),
APIs: cast.ToStringSlice(appOpts.Get(flagJSONRPCAPIs)),
APIs: strings.Split(cast.ToString(appOpts.Get(flagJSONRPCAPIs)), ","),
FilterCap: cast.ToInt32(appOpts.Get(flagJSONRPCFilterCap)),
BlockRangeCap: cast.ToInt32(appOpts.Get(flagJSONRPCBlockRangeCap)),
HTTPTimeout: cast.ToDuration(appOpts.Get(flagJSONRPCHTTPTimeout)),
Expand Down

0 comments on commit 5b6f6ae

Please sign in to comment.