Skip to content

Commit

Permalink
NetworkName/Prefix are optional
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender committed Mar 6, 2024
1 parent e818375 commit 17aa663
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/rpc/shared.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
package rpc

import (
"github.com/samber/mo"
)

// GetNetworkInfoOptions options for the get_network_info rpc calls
type GetNetworkInfoOptions struct {}

// GetNetworkInfoResponse common get_network_info response from all RPC services
type GetNetworkInfoResponse struct {
Response
NetworkName string `json:"network_name"`
NetworkPrefix string `json:"network_prefix"`
NetworkName mo.Option[string] `json:"network_name"`
NetworkPrefix mo.Option[string] `json:"network_prefix"`
}

0 comments on commit 17aa663

Please sign in to comment.