Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(nexus)!: use message RouteMessagesToRouter in the wasm msg route #2033

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all 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
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_to_router"`
}

// 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
3 changes: 1 addition & 2 deletions x/nexus/keeper/wasm_message_route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -97,5 +97,4 @@ func TestNewMessageRoute(t *testing.T) {
}),
).
Run(t)

}
Loading