We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
PUSHINT 10 is shown as -6 PUSHINT.
PUSHINT 10
-6 PUSHINT
Example contract: https://tonscan.org/address/EQArNPVIjXw_ffWPuGp_61zWtIH3tzBTBnHe9ToZ4m8OkoNf#source Code displayed on tonscan:
SETCP0 (:methods recv_internal: recv_external: 3 BLKDROP 10000000 PUSHINT LESS IFRET ACCEPT 0 PUSHINT -6 PUSHINT ...
Code displayed on dton.io:
SETCP 0 DICTPUSHCONST 19, (xC_) DICTIGETJMPZ { -1 => <{ BLKDROP 3 PUSHINT 10000000 LESS IFRET ACCEPT PUSHINT 0 PUSHINT 10 ...
The relevant part of contract code uses only 10 and not -6:
() recv_external(int balance, int msg_value, cell msg_full, slice in_msg) { if (balance < 10 * 1000 * 1000) { return (); } accept_message(); send_raw_message(begin_cell() .store_uint(0xA, 4) ...
The text was updated successfully, but these errors were encountered:
However, the most interesting thing is that 12 PUSHINT is handled correctly. This can be seen on https://tonscan.org/address/EQA-dgYSkIiw2J-MJ-0shgp1pzcmnoWo_vfd_240X7VDKuhf#source.
12 PUSHINT
Sorry, something went wrong.
This is related to incorrect handling of short ints.
According to TVM instructions, short PUSHINT
Pushes integer x into the stack. -5 <= x <= 10. Here i equals four lower-order bits of x (i=x mod 16).
disassembler/src/codepages/cp0.manual.ts
Line 60 in 510270e
No branches or pull requests
PUSHINT 10
is shown as-6 PUSHINT
.Example contract: https://tonscan.org/address/EQArNPVIjXw_ffWPuGp_61zWtIH3tzBTBnHe9ToZ4m8OkoNf#source
Code displayed on tonscan:
Code displayed on dton.io:
The relevant part of contract code uses only 10 and not -6:
The text was updated successfully, but these errors were encountered: