Commit 196c7620 by Francisco Giordano

fix linter

parent 666ba11c
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
// Code style // Code style
"array-bracket-spacing": ["off"], "array-bracket-spacing": ["off"],
"camelcase": ["error", {"properties": "always"}], "camelcase": ["error", {"properties": "always"}],
"comma-dangle": ["error", "always-multiline"], "comma-dangle": ["off"],
"comma-spacing": ["error", {"before": false, "after": true}], "comma-spacing": ["error", {"before": false, "after": true}],
"dot-notation": ["error", {"allowKeywords": true, "allowPattern": ""}], "dot-notation": ["error", {"allowKeywords": true, "allowPattern": ""}],
"eol-last": ["error", "always"], "eol-last": ["error", "always"],
......
...@@ -355,7 +355,9 @@ contract ERC1155 is Initializable, Context, ERC165, IERC1155, IERC1155MetadataUR ...@@ -355,7 +355,9 @@ contract ERC1155 is Initializable, Context, ERC165, IERC1155, IERC1155MetadataUR
bytes memory data bytes memory data
) )
internal internal
{ } {
// solhint-disable-previous-line no-empty-blocks
}
function _doSafeTransferAcceptanceCheck( function _doSafeTransferAcceptanceCheck(
address operator, address operator,
...@@ -368,6 +370,7 @@ contract ERC1155 is Initializable, Context, ERC165, IERC1155, IERC1155MetadataUR ...@@ -368,6 +370,7 @@ contract ERC1155 is Initializable, Context, ERC165, IERC1155, IERC1155MetadataUR
private private
{ {
if (to.isContract()) { if (to.isContract()) {
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = to.call(abi.encodeWithSelector( (bool success, bytes memory returndata) = to.call(abi.encodeWithSelector(
IERC1155Receiver(to).onERC1155Received.selector, IERC1155Receiver(to).onERC1155Received.selector,
operator, operator,
...@@ -406,6 +409,7 @@ contract ERC1155 is Initializable, Context, ERC165, IERC1155, IERC1155MetadataUR ...@@ -406,6 +409,7 @@ contract ERC1155 is Initializable, Context, ERC165, IERC1155, IERC1155MetadataUR
private private
{ {
if (to.isContract()) { if (to.isContract()) {
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = to.call(abi.encodeWithSelector( (bool success, bytes memory returndata) = to.call(abi.encodeWithSelector(
IERC1155Receiver(to).onERC1155BatchReceived.selector, IERC1155Receiver(to).onERC1155BatchReceived.selector,
operator, 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