Skip to content

v0.6.1

Compare
Choose a tag to compare
@github-actions github-actions released this 10 Jun 16:36
· 894 commits to develop since this release
ac4133b

What does this PR introduce?

  • bump package.json version from 0.6.0 -> 0.6.1
  • added release to CHANGELOG.md

BREAKING CHANGES

  • the LSP2 array data keys defined in constants.js are now splitted in two: .length and .index (#192)
  • 🧬 the interfaceId of the LSP1Delegate contract was changed from 0xc2d7bcc1 > 0xa245bbda, because of the change in its function definition. See below for more details.

  • 🔈 🗒️ the function universalReceiverDelegate(...) in the LSP1UniversalReceiverDelegate contract now accept an extra parameter uint256 value, to inform the delegate contract if some value was to the contract implementing the LSP1 standard.

The function definition was changed from this (before)

function universalReceiverDelegate(
        address sender,
        bytes32 typeId,
        bytes memory data
    ) external returns (bytes memory result);

to this (after)

function universalReceiverDelegate(
        address caller,
        uint256 value,
        bytes32 typeId,
        bytes memory data
    ) external returns (bytes memory result);

See the function definition here for more info: https://github.com/lukso-network/lsp-smart-contracts/blob/ac4133b40c10e0b73227caa6f3a2b88b32bf4403/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiverDelegate.sol#L10-L23

Features

  • update receive() function to fallback() payable, to allow sending random bytes payload to the fallback function. (#194)

  • 🔈 the universalReceiver(...) function is now payable and can receive native tokens while being called. (#193) (5b2bc60)

  • add error signatures in constants.js(#191)

  • add LSP1 Type IDs in constants.js (#196)