Skip to content

Commit

Permalink
fix(nexus)!: use message RouteMessagesToRouter in the wasm msg route
Browse files Browse the repository at this point in the history
  • Loading branch information
fish-sammy committed Nov 19, 2023
1 parent 4b76927 commit 3c98160
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/nexus/keeper/wasm_message_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

type request struct {
RouteMessages []exported.WasmMessage `json:"route_messages"`
RouteMessagesToRouter []exported.WasmMessage `json:"route_messages"`
}

// NewMessageRoute creates a new message route
Expand All @@ -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
}
Expand Down

0 comments on commit 3c98160

Please sign in to comment.