v0.6.1
What does this PR introduce?
- bump
package.json
version from0.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 theLSP1UniversalReceiverDelegate
contract now accept an extra parameteruint256 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 tofallback() 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)