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

Is there a way to get message tag? #252

Open
fishTsai20 opened this issue Sep 12, 2024 · 1 comment
Open

Is there a way to get message tag? #252

fishTsai20 opened this issue Sep 12, 2024 · 1 comment

Comments

@fishTsai20
Copy link

get message tag by c++ like below:
https://github.com/dungeon-master-666/ton/blob/200508cf8fca3ce5aa8d566105e32aea38601e93/crypto/tl/tlblib.hpp#L723

auto message_cs = vm::load_cell_slice(trans.r1.in_msg->prefetch_ref());
block::gen::t_CommonMsgInfo.get_tag(message_cs)

  int get_tag(const vm::CellSlice& cs) const override {
    return cs.bselect(2, 13);
  }

How to get tag by your code?

@xssnick
Copy link
Owner

xssnick commented Sep 13, 2024

No, but all you need is to just repeat short logic of bselect

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

2 participants