Standard Method for Defining Opcodes in func
from Jeff
Hello,
I've been exploring different repositories and noticed inconsistencies in how opcodes are defined. For example, in the ft and nft implementation within the token-contract repository, opcodes are defined as follows:
int op::transfer() asm "0x5fcc3d14 PUSHINT";
However, in the liquid-staking-contract repository, the definition is quite different:
const int op::nft_transfer = 0x5fcc3d14;
While I understand that these are essentially the same, I'm curious about the more commonly accepted or standard method for defining opcodes in func
Additionally, I've observed that the ft and nft implementation in the token-contract repository might be outdated. It uses builder_null from stdlib.fc in this repo, but the stdlib.fc in the official documentation doesn’t include it.
Could someone clarify these points for me?
🔗 Answer on TON Overflow
Dec 4, 2023, 2:30 PM