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

Thrown exit codes must match FunC reference implementation #18

Open
anton-trunov opened this issue Dec 19, 2024 · 0 comments
Open

Thrown exit codes must match FunC reference implementation #18

anton-trunov opened this issue Dec 19, 2024 · 0 comments

Comments

@anton-trunov
Copy link
Member

anton-trunov commented Dec 19, 2024

For instance, it seems the following FunC and Tact parts do not match:

 if (op == op::provide_wallet_address()) {
        throw_unless(75, msg_value > fwd_fee + provide_address_gas_consumption());

vs

receive(msg: ProvideWalletAddress) {
    require(context().value >= ton("0.006625199"), "Insufficient gas");

You can use nativeThrowUnless here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant