diff --git a/x/nexus/keeper/wasm_message_route.go b/x/nexus/keeper/wasm_message_route.go index 933069f05..57c453f74 100644 --- a/x/nexus/keeper/wasm_message_route.go +++ b/x/nexus/keeper/wasm_message_route.go @@ -11,7 +11,7 @@ import ( ) type request struct { - RouteMessages []exported.WasmMessage `json:"route_messages"` + RouteMessagesToRouter []exported.WasmMessage `json:"route_messages_to_router"` } // NewMessageRoute creates a new message route @@ -26,7 +26,7 @@ func NewMessageRoute(nexus types.Nexus, account types.AccountKeeper, wasm types. return fmt.Errorf("gateway is not set") } - bz, err := json.Marshal(request{RouteMessages: []exported.WasmMessage{exported.FromGeneralMessage(msg)}}) + bz, err := json.Marshal(request{RouteMessagesToRouter: []exported.WasmMessage{exported.FromGeneralMessage(msg)}}) if err != nil { return nil } diff --git a/x/nexus/keeper/wasm_message_route_test.go b/x/nexus/keeper/wasm_message_route_test.go index 5484a5408..3196a9bbf 100644 --- a/x/nexus/keeper/wasm_message_route_test.go +++ b/x/nexus/keeper/wasm_message_route_test.go @@ -87,7 +87,7 @@ func TestNewMessageRoute(t *testing.T) { assert.Empty(t, wasmK.ExecuteCalls()[0].Coins) type req struct { - RouteMessages []nexus.WasmMessage `json:"route_messages"` + RouteMessages []nexus.WasmMessage `json:"route_messages_to_router"` } var actual req @@ -97,5 +97,4 @@ func TestNewMessageRoute(t *testing.T) { }), ). Run(t) - }