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

Tact compilation fails but blueprint build but still shows success #144

Open
anton-trunov opened this issue Aug 23, 2024 · 0 comments
Open

Comments

@anton-trunov
Copy link
Collaborator

anton-trunov commented Aug 23, 2024

The actual error is

Function '__tact_dict_get_int_int' does not exist in imported FunC sources

Btw, the tact CLI reports the same error and returns exit code 30.

Here is my full terminal session:

❯ git clone https://github.com/imartemy1524/ton-social -b tact-error
Cloning into 'ton-social'...
remote: Enumerating objects: 37, done.
remote: Counting objects: 100% (37/37), done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 37 (delta 0), reused 37 (delta 0), pack-reused 0 (from 0)
Receiving objects: 100% (37/37), 74.41 KiB | 12.40 MiB/s, done.
❯ cd ton-social
❯ npm i
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported

added 463 packages, and audited 464 packages in 3s

50 packages are looking for funding
  run `npm fund` for details

5 moderate severity vulnerabilities

To address issues that do not require attention, run:
  npm audit fix

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
❯ npx blueprint build
(node:77835) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Using file: Master
Build script running, compiling Master
⏳ Compiling...   > User: tact compiler
   > User: func compiler
   > UserPost: tact compiler
   > UserPost: func compiler
Function '__tact_dict_get_int_int' does not exist in imported FunC sources

⚠️ Make sure to disable debug mode in contract wrappers before doing production deployments!

✅ Compiled successfully! Cell BOC result:

{
  "hash": "0bc6257a7f594cffd5ea225bd0e02664ba5cbcdab5a105e6e38a4e45cc67749f",
  "hashBase64": "C8Ylen9ZTP/V6iJb0OAmZLpcvNq1oQXm44pORcxndJ8=",
  "hex": "b5ee9c72410228010008c4000114ff00f4a413f4bcf2c80b010201620219037ad001d0d3030171b0a301fa400120d74981010bbaf2e08820d70b0a208104ffbaf2d0898309baf2e088545053036f04f86102f862db3c5515db3cf2e08221031803f60192307fe07021d749c21f953020d70b1fde208210fc7894d1ba8ed330d31f018210fc7894d1baf2e081fa400120d74981010bbaf2e08820d70b0a208104ffbaf2d0898309baf2e08801fa400120d74981010bbaf2e08820d70b0a208104ffbaf2d0898309baf2e088126c12db3c7fe0208210819dbe99bae3022004080a04905551812bb0f8425260c705f2f46c21f823c86f00016f8c6d6f8c22db3cdb3c8bc20696e697469616c697a65648db3c6f2201c993216eb396016f2259ccc9e831d0105710461035140506060700dec821c10098802d01cb0701a301de218238327cb2734119d3b7a9aa1db98e207020718e14047aa90ca63025a812a004aa0702a421c0004530e63033aa02cf018e2b6f00708e11237aa908126f8c01a4037aa90420c00014e63322a5039c53026f81a63058cb0702a559e43031e2c9d00104db3c15021e70804002db3c50037044346d6ddb3c141602ec30d31f018210819dbe99baf2e081d33ffa400120d74981010bbaf2e08820d70b0a208104ffbaf2d0898309baf2e088126c125551db3c315165c8598210327b2b4a5003cb1fcb3f0120d74981010bbaf2e08820d70b0a208104ffbaf2d0898309baf2e088cf16c910461035443012f842017f6ddb3c7f1309013a6d6d226eb3995b206ef2d0806f22019132e2102470030480425023db3c1604fe8208040300ba8e2130d31f018208040300baf2e081d20001315550812bb0f8425260c705f2f46c157fe0208210c00cd599ba8e9530d31f018210c00cd599baf2e081d401d031db3c7fe02082107d72e377ba8e9930d31f0182107d72e377baf2e081d33fd401d0126c12db3c7fe020821007d68eddbae302821070f9f4baba0b0d0f1203f05550db3c8200ec50f8416f24135f03821005f5e100bef2f481303626b3f2f403a4f843251057104643671220478024db3c5c7059c87001cb017301cb017001cb0012ccccc9f900c87201cb017001cb0012ca07cbffc9d020d74981010bbaf2e08820d70b0a208104ffbaf2d0898309baf2e08870804051b913250c0182c8598210cfdb89545003cb1fc858cf16c901cc0120d74981010bbaf2e08820d70b0a208104ffbaf2d0898309baf2e088cf16c94540103b401b7f5550db3c4533041603f45551db3c8200ec50f8416f24135f03821005f5e100bef2f481303626b3f2f4820093345348bef2f4f843255551201038470adb3c7059c87001cb017301cb017001cb0012ccccc9f900c87201cb017001cb0012ca07cbffc9d020d74981010bbaf2e08820d70b0a208104ffbaf2d0898309baf2e088708040518613250e0180c8598210cfdb89545003cb1fc858cf16c901cc0120d74981010bbaf2e08820d70b0a208104ffbaf2d0898309baf2e088cf16c94130187f55306d6ddb3c55300516013830d31f01821007d68eddbaf2e081d33fd33fd2000143306c13db3c7f1003f65552db3c8200ec50f8416f24135f03821005f5e100bef2f481303626b3f2f4f84354453a19db3c7059c87001cb017301cb017001cb0012ccccc9f900c87201cb017001cb0012ca07cbffc9d020d74981010bbaf2e08820d70b0a208104ffbaf2d0898309baf2e08870804007c80181100258cb1f0101ca00c941301325110118177f55306d6ddb3c451350421603688fafd31f01821070f9f4babaf2e081d401d0315550db3c2110671056104503502470804002db3c50037044346d6ddb3c7fe030701314160012f8425220c705f2e0840142c87001cb1f6f00016f8c6d6f8c01db3c6f2201c993216eb396016f2259ccc9e8311500ba20d74a21d7499720c20022c200b18e4a036f22807f22cf31ab02a105ab025155b60820c2009c20aa0215d7185033cf164014de596f025341a1c20099c8016f025044a1aa028e123133c20099d430d020d74a21d749927020e2e2e85f0301cac87101ca01500701ca007001ca02500520d74981010bbaf2e08820d70b0a208104ffbaf2d0898309baf2e088cf165003fa027001ca68236eb3917f93246eb3e2973333017001ca00e30d216eb39c7f01ca0001206ef2d08001cc95317001ca00e2c901fb001700987f01ca00c87001ca007001ca00246eb39d7f01ca0004206ef2d0805004cc9634037001ca00e2246eb39d7f01ca0004206ef2d0805004cc9634037001ca00e27001ca00027f01ca0002c958cc00aec8f84301cc7f01ca0055505056ca00500320d74981010bbaf2e08820d70b0a208104ffbaf2d0898309baf2e088cf16cb3fcb3f0120d74981010bbaf2e08820d70b0a208104ffbaf2d0898309baf2e088cf16cb3fc9ed540201201a1c0211be28eed9e6d9e3630c211b0002210201201d270201481e200211b1d8b6cf36cf1b1960211f000a54740153860215b18db6cf154176cf1b1860212401c8ed44d0d401f863d200018e4cd200fa400120d74981010bbaf2e08820d70b0a208104ffbaf2d0898309baf2e08801d33fd33ffa400120d74981010bbaf2e08820d70b0a208104ffbaf2d0898309baf2e08801d33f55506c16e0f828d70b0a8309baf2e089220156fa400120d74981010bbaf2e08820d70b0a208104ffbaf2d0898309baf2e08801810101d7005902d101db3c2300568d08600000000000000000000000000000000000000000000000000000000000000000047070542015503401a6f8432655522010384709db3c7059c87001cb017301cb017001cb0012ccccc9f900c87201cb017001cb0012ca07cbffc9d020d74981010bbaf2e08820d70b0a208104ffbaf2d0898309baf2e0881036454041302501bc03d0f404306d21813b5d018010f40f6fa1f2e08701813b5d22028010f417228155a2018010f40f6fa1f2e0878155a201028010f417028200e22c018010f40f6fa1f2e087128200e22c01028010f417c801c8f400c901cc7001ca005520042600565a20d74981010bbaf2e08820d70b0a208104ffbaf2d0898309baf2e088cf1612810101cf00810101cf00c90011b82beed44d0d20001881c69db4"
}

✅ Wrote compilation artifact to build/Master.compiled.json
❯ echo $?
0
@anton-trunov anton-trunov changed the title Tact compilation fails but blueprint build fails but still shows success Tact compilation fails but blueprint build but still shows success Aug 23, 2024
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

1 participant