Unverified Commit e27f397c authored by Gabriel's avatar Gabriel Committed by GitHub
Browse files

Fix WalletUpdate output values. (#792)

parent bae97484
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1656,6 +1656,8 @@ func (n *RuntimeGoNakamaModule) NotificationsSend(ctx context.Context, notificat
// @param changeset(type=map[string]int64) The set of wallet operations to apply.
// @param metadata(type=map[string]interface{}, optional=true) Additional metadata to tag the wallet update with.
// @param updateLedger(type=bool, optional=true, default=false) Whether to record this update in the ledger.
// @return updatedValue(type=map) The updated wallet value.
// @return previousValue(type=map) The previous wallet value.
// @return error(error) An optional error value if an error occurred.
func (n *RuntimeGoNakamaModule) WalletUpdate(ctx context.Context, userID string, changeset map[string]int64, metadata map[string]interface{}, updateLedger bool) (map[string]int64, map[string]int64, error) {
	uid, err := uuid.FromString(userID)