Skip to content

Static field for message opcodes #2230

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

Closed
anton-trunov opened this issue Mar 4, 2025 · 0 comments · Fixed by #2886
Closed

Static field for message opcodes #2230

anton-trunov opened this issue Mar 4, 2025 · 0 comments · Fixed by #2886
Assignees
Labels
feature: structs Structures and messages (struct Foo, message Foo) kind: language feature Intent to add a language feature
Milestone

Comments

@anton-trunov
Copy link
Member

So, instead of

const TakeWalletAddressOpcode: Int = 0xd1735400;

message(TakeWalletAddressOpcode) TakeWalletAddress {
    queryId: Int as uint64;
    walletAddress: Address;
    ownerAddress: Cell?; //It is Maybe ^Address, just encoded it like this
}

the user should be able to use

TakeWalletAddress.opcode
@anton-trunov anton-trunov added feature: structs Structures and messages (struct Foo, message Foo) kind: language feature Intent to add a language feature labels Mar 4, 2025
@anton-trunov anton-trunov added this to the v1.7.0 milestone Mar 4, 2025
@tact-lang tact-lang deleted a comment from Muaytie666 Mar 18, 2025
@tact-lang tact-lang deleted a comment from Muaytie666 Mar 18, 2025
@novusnota novusnota modified the milestones: v1.8.0, v1.7.0 Apr 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: structs Structures and messages (struct Foo, message Foo) kind: language feature Intent to add a language feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants