tonutils-go icon indicating copy to clipboard operation
tonutils-go copied to clipboard

Is there a way to get message tag?

Open fishTsai20 opened this issue 5 months ago • 1 comments

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?

fishTsai20 avatar Sep 12 '24 10:09 fishTsai20