Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
eloi010 committed Dec 20, 2023
1 parent 073798d commit d72d7a6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/foundry/core/erc6551/ERC6551OpenfortAccountTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,18 @@ contract ERC6551OpenfortAccountTest is OpenfortBaseTest {
assertTrue(erc6551OpenfortAccount.supportsInterface(type(IERC1155Receiver).interfaceId));
assertTrue(erc6551OpenfortAccount.supportsInterface(type(IERC165).interfaceId));
assertFalse(erc6551OpenfortAccount.supportsInterface(bytes4(0x0000)));
assertEq(erc6551OpenfortAccount.onERC1155Received(address(0), address(0), 0, 0, ""), bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)")));
assertEq(
erc6551OpenfortAccount.onERC1155Received(address(0), address(0), 0, 0, ""),
bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))
);
uint256[] memory ids = new uint256[](1);
ids[0] = 1;
uint256[] memory values = new uint256[](1);
values[0] = 1;
assertEq(erc6551OpenfortAccount.onERC1155BatchReceived(address(0), address(0), ids, values, ""), bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)")));
assertEq(
erc6551OpenfortAccount.onERC1155BatchReceived(address(0), address(0), ids, values, ""),
bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))
);
}

function testUpdateEntryPoint() public {
Expand Down

0 comments on commit d72d7a6

Please sign in to comment.