everx-labs / TVM-Solidity-Compiler

Solidity compiler for TVM

Repository from Github https://github.comeverx-labs/TVM-Solidity-CompilerRepository from Github https://github.comeverx-labs/TVM-Solidity-Compiler

block.logicaltime doesn't work & block.timestamp output's wrong unix time, ex:- "35012461000000"

shravanandoria opened this issue · comments

image

Now when I read this in the frontend, I get this "35012461000000", I think it's not a valid unix time

@IgorKoval Please take a look at it

commented

Compiler version?

Compiler version?

0.61.2
@mnill

commented

Logical time is Everscale related param. To get timestamp you need to use compiler with version >= 0.67.0 or try to use now instead of block.timestamp

https://github.com/tonlabs/TON-Solidity-Compiler/blob/master/Changelog.md

0.67.0 (2023-03-16)

Update compiler frontend (from original version 0.6.3 to 0.8.17):

Breaking changes:
block.timestamp returns opcode NOW instead of opcode BLOCKLT. block.logicaltime returns opcode BLOCKLT.