disintar / toncli

TON Command Line Interface - easy smart contract manipulation
https://disintar.io/
Apache License 2.0
166 stars 34 forks source link

Fix setup issue in the new versions of TON #46

Closed AminRezaei0x443 closed 2 years ago

AminRezaei0x443 commented 2 years ago

In recent versions of TON, the version message's structure for the func binary (func -V) has been changed and safe_get_version fails to process the output, making the setup impossible. Old version's output:

Func build information: [ Commit: ae5c0720143e231c32c3d2034cfe4e533a16d969, Date: 2022-01-18 19:34:25 +0300]

New version's output:

FunC semantic version: v0.2.0
Build information: [ Commit: db3619ed310484fcfa4e3565be8e10458f9f2f5f, Date: 2022-05-17 15:56:31 +0300]

This PR fixes the issue and makes sure it works with both message structures.

tvorogme commented 2 years ago

Thanks!