Skip to content

Commit

Permalink
refactor: update universalReceiver event in lsp0 & lsp9
Browse files Browse the repository at this point in the history
  • Loading branch information
skimaharvey committed Oct 27, 2023
1 parent 1653101 commit dc75b7a
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ abstract contract LSP0ERC725AccountCore is
*
* 2. If the data sent to this function is of length less than 4 bytes (not a function selector), return.
*
* @custom:events {UniversalReceiver} event when receiving native tokens.
* @custom:events {UniversalReceiver} event when receiving native tokens and extension function selector is not found or not payable.
*/
// solhint-disable-next-line no-complex-fallback
fallback(
Expand Down Expand Up @@ -198,7 +198,7 @@ abstract contract LSP0ERC725AccountCore is
msg.sender,
msg.value,
_TYPEID_LSP0_VALUE_RECEIVED,
"",
abi.encodePacked(msg.sig),
""
);
}
Expand Down Expand Up @@ -262,7 +262,7 @@ abstract contract LSP0ERC725AccountCore is
msg.sender,
msg.value,
_TYPEID_LSP0_VALUE_RECEIVED,
"",
abi.encodePacked(msg.sig),
""
);
}
Expand Down Expand Up @@ -321,7 +321,7 @@ abstract contract LSP0ERC725AccountCore is
msg.sender,
msg.value,
_TYPEID_LSP0_VALUE_RECEIVED,
"",
abi.encodePacked(msg.sig),
""
);
}
Expand Down Expand Up @@ -364,7 +364,7 @@ abstract contract LSP0ERC725AccountCore is
msg.sender,
msg.value,
_TYPEID_LSP0_VALUE_RECEIVED,
"",
abi.encodePacked(msg.sig),
""
);
}
Expand Down
6 changes: 3 additions & 3 deletions contracts/LSP9Vault/LSP9VaultCore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ contract LSP9VaultCore is
*
* 2. If the data sent to this function is of length less than 4 bytes (not a function selector), return.
*
* @custom:events {UniversalReceiver} event when receiving native tokens.
* @custom:events {UniversalReceiver} event when receiving native tokens and extension function selector is not found or not payable.
*/
// solhint-disable-next-line no-complex-fallback
fallback(
Expand Down Expand Up @@ -202,7 +202,7 @@ contract LSP9VaultCore is
msg.sender,
msg.value,
_TYPEID_LSP9_VALUE_RECEIVED,
"",
abi.encodePacked(msg.sig),
""
);
}
Expand Down Expand Up @@ -237,7 +237,7 @@ contract LSP9VaultCore is
msg.sender,
msg.value,
_TYPEID_LSP9_VALUE_RECEIVED,
"",
abi.encodePacked(msg.sig),
""
);
}
Expand Down
2 changes: 1 addition & 1 deletion docs/contracts/LSP0ERC725Account/LSP0ERC725Account.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ This function is executed when:

**Emitted events:**

- [`UniversalReceiver`](#universalreceiver) event when receiving native tokens.
- [`UniversalReceiver`](#universalreceiver) event when receiving native tokens and extension function selector is not found or not payable.

</blockquote>

Expand Down
2 changes: 1 addition & 1 deletion docs/contracts/LSP9Vault/LSP9Vault.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ This function is executed when:

**Emitted events:**

- [`UniversalReceiver`](#universalreceiver) event when receiving native tokens.
- [`UniversalReceiver`](#universalreceiver) event when receiving native tokens and extension function selector is not found or not payable.

</blockquote>

Expand Down
2 changes: 1 addition & 1 deletion tests/LSP9Vault/LSP9Vault.behaviour.ts
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ export const shouldBehaveLikeLSP9 = (
context.deployParams.newOwner,
msgValue,
LSP1_TYPE_IDS.LSP9ValueReceived,
'0x',
context.universalProfile.interface.getSighash('executeBatch'),
'0x',
);
});
Expand Down
6 changes: 3 additions & 3 deletions tests/UniversalProfile.behaviour.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ export const shouldBehaveLikeLSP3 = (
context.accounts[0].address,
msgValue,
LSP1_TYPE_IDS.LSP0ValueReceived,
'0x',
context.universalProfile.interface.getSighash('setData'),
'0x',
);

Expand All @@ -314,7 +314,7 @@ export const shouldBehaveLikeLSP3 = (
context.accounts[0].address,
msgValue,
LSP1_TYPE_IDS.LSP0ValueReceived,
'0x',
context.universalProfile.interface.getSighash('setDataBatch'),
'0x',
);

Expand Down Expand Up @@ -429,7 +429,7 @@ export const shouldBehaveLikeLSP3 = (
context.deployParams.owner.address,
msgValue,
LSP1_TYPE_IDS.LSP0ValueReceived,
'0x',
context.universalProfile.interface.getSighash('executeBatch'),
'0x',
);
});
Expand Down

0 comments on commit dc75b7a

Please sign in to comment.