Skip to content

Commit

Permalink
test: resolve .skip tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CJ42 committed Aug 14, 2023
1 parent 614cec6 commit 64db7ac
Show file tree
Hide file tree
Showing 15 changed files with 660 additions and 816 deletions.
4 changes: 1 addition & 3 deletions contracts/Mocks/Tokens/TokenReceiverWithLSP1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import {
import {_INTERFACEID_LSP1} from "../../LSP1UniversalReceiver/LSP1Constants.sol";

contract TokenReceiverWithLSP1 is ERC165Storage, ILSP1UniversalReceiver {
event UniversalReceiverCalled(bytes32 typeId, bytes data);

constructor() {
_registerInterface(_INTERFACEID_LSP1);
}
Expand All @@ -25,7 +23,7 @@ contract TokenReceiverWithLSP1 is ERC165Storage, ILSP1UniversalReceiver {
bytes32 typeId,
bytes memory data
) external payable override returns (bytes memory returnValue) {
emit UniversalReceiverCalled(typeId, data);
emit UniversalReceiver(msg.sender, msg.value, typeId, data, "");

return "thanks for calling";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ contract TokenReceiverWithLSP1WithERC721Received is
ILSP1UniversalReceiver,
ERC721Holder
{
event UniversalReceiverCalled(bytes32 typeId, bytes data);

constructor() {
_registerInterface(_INTERFACEID_LSP1);
}
Expand All @@ -36,7 +34,7 @@ contract TokenReceiverWithLSP1WithERC721Received is
bytes32 typeId,
bytes memory data
) external payable override returns (bytes memory returnValue) {
emit UniversalReceiverCalled(typeId, data);
emit UniversalReceiver(msg.sender, msg.value, typeId, data, "");

return "thanks for calling";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ contract TokenReceiverWithLSP1WithERC721ReceivedInvalid is
ILSP1UniversalReceiver,
ERC721Holder
{
event UniversalReceiverCalled(bytes32 typeId, bytes data);

constructor() {
_registerInterface(_INTERFACEID_LSP1);
}
Expand All @@ -36,7 +34,7 @@ contract TokenReceiverWithLSP1WithERC721ReceivedInvalid is
bytes32 typeId,
bytes memory data
) external payable override returns (bytes memory returnValue) {
emit UniversalReceiverCalled(typeId, data);
emit UniversalReceiver(msg.sender, msg.value, typeId, data, "");

return "thanks for calling";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ contract TokenReceiverWithLSP1WithERC721ReceivedRevert is
ILSP1UniversalReceiver,
ERC721Holder
{
event UniversalReceiverCalled(bytes32 typeId, bytes data);

constructor() {
_registerInterface(_INTERFACEID_LSP1);
}
Expand All @@ -36,7 +34,7 @@ contract TokenReceiverWithLSP1WithERC721ReceivedRevert is
bytes32 typeId,
bytes memory data
) external payable override returns (bytes memory returnValue) {
emit UniversalReceiverCalled(typeId, data);
emit UniversalReceiver(msg.sender, msg.value, typeId, data, "");

return "thanks for calling";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import {
import {_INTERFACEID_LSP1} from "../../LSP1UniversalReceiver/LSP1Constants.sol";

contract TokenReceiverWithoutLSP1WithERC721Received is ERC721Holder {
event UniversalReceiverCalled(bytes32 typeId, bytes data);

receive() external payable {}

fallback() external payable {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import {
import {_INTERFACEID_LSP1} from "../../LSP1UniversalReceiver/LSP1Constants.sol";

contract TokenReceiverWithoutLSP1WithERC721ReceivedInvalid is ERC721Holder {
event UniversalReceiverCalled(bytes32 typeId, bytes data);

receive() external payable {}

fallback() external payable {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import {
import {_INTERFACEID_LSP1} from "../../LSP1UniversalReceiver/LSP1Constants.sol";

contract TokenReceiverWithoutLSP1WithERC721ReceivedRevert is ERC721Holder {
event UniversalReceiverCalled(bytes32 typeId, bytes data);

receive() external payable {}

fallback() external payable {}
Expand Down
5 changes: 0 additions & 5 deletions tests/LSP20CallVerification/LSP6/LSP20WithLSP6.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ describe('LSP20 + LSP6 with constructor', () => {
return { accounts, owner, universalProfile, keyManager, initialFunding };
};

describe('when deploying the contract', () => {
// TODO: add tests to ensure LSP20 interface is registered.
// on LSP6 or LSP0?
});

describe('when testing deployed contract', () => {
shouldBehaveLikeLSP6(buildTestContext);
});
Expand Down
Loading

0 comments on commit 64db7ac

Please sign in to comment.