Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

chain: Update json key name of request and response packets #2297

Merged
merged 3 commits into from
Jul 23, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG_UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

### Chain (Non-consensus)

- (bugs) [\#2297](https://github.com/bandprotocol/bandchain/pull/2297) Update json key name of request and response packets.

### Yoda

### Emitter & Flusher
Expand Down
4 changes: 2 additions & 2 deletions chain/x/oracle/types/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package types

// Result is a convenience struct that keeps both request and response packets of a request.
type Result struct {
RequestPacketData OracleRequestPacketData
ResponsePacketData OracleResponsePacketData
RequestPacketData OracleRequestPacketData `json:"request_packet_data"`
ResponsePacketData OracleResponsePacketData `json:"response_packet_data"`
}

// NewResult creates a new Result instance.
Expand Down