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

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

Open fishTsai20 opened this issue 1 year ago • 1 comments

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

fishTsai20 avatar Nov 08 '24 08:11 fishTsai20

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

xssnick avatar Nov 14 '24 17:11 xssnick