File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -402,6 +402,8 @@ type ContractInfoResponse struct {
402
402
Pinned bool `json:"pinned"`
403
403
// Set if the contract is IBC enabled
404
404
IBCPort string `json:"ibc_port,omitempty"`
405
+ // Set if the contract is Eureka enabled
406
+ EurekaPort string `json:"eureka_port,omitempty"`
405
407
}
406
408
407
409
type CodeInfoQuery struct {
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ func TestWasmQuerySerialization(t *testing.T) {
118
118
var err error
119
119
120
120
// ContractInfo
121
- document := []byte (`{"contract_info":{"contract_addr":"aabbccdd456"}}` )
121
+ document := []byte (`{"contract_info":{"contract_addr":"aabbccdd456", "eureka_port":"wasm" }}` )
122
122
var query WasmQuery
123
123
err = json .Unmarshal (document , & query )
124
124
require .NoError (t , err )
@@ -128,6 +128,7 @@ func TestWasmQuerySerialization(t *testing.T) {
128
128
require .Nil (t , query .CodeInfo )
129
129
require .NotNil (t , query .ContractInfo )
130
130
require .Equal (t , "aabbccdd456" , query .ContractInfo .ContractAddr )
131
+ require .Equal (t , "wasm" , query .ContractInfo .EurekaPort )
131
132
132
133
// CodeInfo
133
134
document = []byte (`{"code_info":{"code_id":70}}` )
You can’t perform that action at this time.
0 commit comments