Commit 196c7620 by Francisco Giordano

fix linter

parent 666ba11c
......@@ -27,7 +27,7 @@
// Code style
"array-bracket-spacing": ["off"],
"camelcase": ["error", {"properties": "always"}],
"comma-dangle": ["error", "always-multiline"],
"comma-dangle": ["off"],
"comma-spacing": ["error", {"before": false, "after": true}],
"dot-notation": ["error", {"allowKeywords": true, "allowPattern": ""}],
"eol-last": ["error", "always"],
......
......@@ -355,7 +355,9 @@ contract ERC1155 is Initializable, Context, ERC165, IERC1155, IERC1155MetadataUR
bytes memory data
)
internal
{ }
{
// solhint-disable-previous-line no-empty-blocks
}
function _doSafeTransferAcceptanceCheck(
address operator,
......@@ -368,6 +370,7 @@ contract ERC1155 is Initializable, Context, ERC165, IERC1155, IERC1155MetadataUR
private
{
if (to.isContract()) {
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = to.call(abi.encodeWithSelector(
IERC1155Receiver(to).onERC1155Received.selector,
operator,
......@@ -406,6 +409,7 @@ contract ERC1155 is Initializable, Context, ERC165, IERC1155, IERC1155MetadataUR
private
{
if (to.isContract()) {
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = to.call(abi.encodeWithSelector(
IERC1155Receiver(to).onERC1155BatchReceived.selector,
operator,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment