Skip to content

fix amount in cashback message #179

@Shvandre

Description

@Shvandre
if (msg.responseDestination != null && msgValue > 0) {
    message(MessageParameters {
        to: msg.responseDestination!!,
        value: msgValue, // Should be replaced with 0
        mode: SendRemainingBalance | SendIgnoreErrors,
        bounce: false,
        body: JettonExcesses { queryId: msg.queryId }.toCell(),
    });
}

Actually, when mode SendRemainingBalance is used, value of message is ignored, so it doesn't change anything.

Still, it's better to replace with 0 as in that form it is more obvious how that works

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions