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

Why don't the state init code match the browser's code? #273

Open
fishTsai20 opened this issue Nov 8, 2024 · 1 comment
Open

Why don't the state init code match the browser's code? #273

fishTsai20 opened this issue Nov 8, 2024 · 1 comment

Comments

@fishTsai20
Copy link

the code generate stateInitCode as below
if raw.StateInit != nil && raw.StateInit.Code != nil {
msg.StateInitCode = raw.StateInit.Code.ToBOC()
}
but the result return isn't match the browser as below
https://tonviewer.com/EQBynBO23ywHy_CgarY9NK9FTz0yDsG82PtcbSTQgGoXwiuA?section=code

@xssnick
Copy link
Owner

xssnick commented Nov 14, 2024

The difference can be because generated boc contains crc flag, so it is 4 bytes longer, but you can compare cell hashes and they should be same

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