Skip to content

0.5.17_Plato_v4.2

Compare
Choose a tag to compare
@Lredhdx Lredhdx released this 27 Apr 03:51
· 17 commits to master_0.5.x since this release
44338cd

TRON Solidity compiler 0.5.17 already supports Ethereum Solidity 0.5.17, which fixes a bug that a private function can be overridden in a derived contract by a private function of the same name and types.

This release also supports three new instructions introduced in TIP-157. These instructions will be supported in >=0.6.2.

Requirements

  • Developers can only use these new instructions after proposal TIP-157 has been approved in TRON mainnet.
  • Developers can use other feature before proposal TIP-157 has been approved in TRON mainnet.

New Features

  • Add FREEZE instruction: Smart contract can freeze balance to get resources or delegate resources for others.
  • Add UNFREEZE instruction: Smart contract can unfreeze balance.
  • Add FREEZEEXPIRETIME instruction: Smart contract can get freeze expire time, return in seconds.

Important Bugfix

  • Type Checker: Disallow overriding of private functions.