Skip to content

Commit

Permalink
fix: wasm DispatchMsg should return events and data (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
inon-man authored Jun 21, 2023
1 parent da57343 commit 5dd891a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom/wasm/keeper/handler_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (h SDKMessageHandler) DispatchMsg(ctx sdk.Context, contractAddr sdk.AccAddr
}
events = append(events, sdkEvents...)
}
return nil, nil, nil
return events, data, nil
}

func (h SDKMessageHandler) handleSdkMessage(ctx sdk.Context, contractAddr sdk.Address, msg sdk.Msg) (*sdk.Result, error) {
Expand Down

0 comments on commit 5dd891a

Please sign in to comment.