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

Question about BuildTransferPayload #205

Closed
restoreall opened this issue Jun 19, 2024 · 2 comments
Closed

Question about BuildTransferPayload #205

restoreall opened this issue Jun 19, 2024 · 2 comments

Comments

@restoreall
Copy link

Hi all, I have a question about jetton message.
If I have a cell that contains lots of additional payload, when I use BuildTransferPayloadV2, cell will be parsed and every data will be appended to the msg_body.

if err := root.StoreBuilder(builder); err != nil {

It may caused cell overflow error. So Im confused why not use store_ref() to store cell? or maybe I have a wrong thinking?

Thanks for everyone's answer.

@xssnick
Copy link
Owner

xssnick commented Jun 19, 2024

Hi, store builder is more flexible, if your payload is small and you dont need a ref, your transaction will be cheaper, if you have big payload, you can just wrap your data in a ref before call, the it will be same as store ref, just pass cell.BeginCell()lMustStoreRef(payload)

@restoreall
Copy link
Author

Understand. Thanks for your helping.

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