Skip to content

Commit

Permalink
clio validation
Browse files Browse the repository at this point in the history
  • Loading branch information
CreatureDev committed Aug 22, 2023
1 parent db21e0a commit 0fb8dd3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions model/client/clio/ledger_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ func (*LedgerRequest) Method() string {
return "ledger"
}

func (*LedgerRequest) Validate() error {
return nil
}

func (r *LedgerRequest) UnmarshalJSON(data []byte) error {
type lrHelper struct {
LedgerHash common.LedgerHash `json:"ledger_hash"`
Expand Down
4 changes: 4 additions & 0 deletions model/client/clio/nft_info_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ func (*NFTInfoRequest) Method() string {
return "nft_info"
}

func (*NFTInfoRequest) Validate() error {
return nil
}

func (r *NFTInfoRequest) UnmarshalJSON(data []byte) error {
type nirHelper struct {
NFTokenID types.NFTokenID `json:"nft_id"`
Expand Down
4 changes: 4 additions & 0 deletions model/client/clio/server_info_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ type ServerInfoRequest struct {
func (*ServerInfoRequest) Method() string {
return "server_info"
}

func (*ServerInfoRequest) Validate() error {
return nil
}

0 comments on commit 0fb8dd3

Please sign in to comment.