From cd8887b811b8732540fe4f1fe90012d7a2ce7fa4 Mon Sep 17 00:00:00 2001 From: Maxime Date: Thu, 12 Dec 2024 09:04:18 +0000 Subject: [PATCH] fix: format lsp8votes --- .../lsp8-contracts/contracts/extensions/LSP8Votes.sol | 11 ++++++++--- .../contracts/extensions/LSP8VotesInitAbstract.sol | 11 ++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/packages/lsp8-contracts/contracts/extensions/LSP8Votes.sol b/packages/lsp8-contracts/contracts/extensions/LSP8Votes.sol index 0722b5db0..2beed22b5 100644 --- a/packages/lsp8-contracts/contracts/extensions/LSP8Votes.sol +++ b/packages/lsp8-contracts/contracts/extensions/LSP8Votes.sol @@ -10,7 +10,9 @@ import { _TYPEID_LSP8_VOTESDELEGATOR, _TYPEID_LSP8_VOTESDELEGATEE } from "./LSP8VotesConstants.sol"; -import {LSP1Utils} from "@lukso/lsp-smart-contracts/contracts/LSP1UniversalReceiver/LSP1Utils.sol"; +import { + LSP1Utils +} from "@lukso/lsp-smart-contracts/contracts/LSP1UniversalReceiver/LSP1Utils.sol"; /** * @dev Extension of LSP8 to support voting and delegation as implemented by {Votes}, where each individual NFT counts @@ -47,11 +49,14 @@ abstract contract LSP8Votes is LSP8IdentifiableDigitalAsset, Votes { return balanceOf(account); } - /** + /** * @dev Override of the {Votes-_delegate} function to add LSP1 notifications. * Notifies both the delegator and delegatee through LSP1. */ - function _delegate(address delegator, address delegatee) internal virtual override { + function _delegate( + address delegator, + address delegatee + ) internal virtual override { address currentDelegate = delegates(delegator); uint256 delegatorBalance = balanceOf(delegator); diff --git a/packages/lsp8-contracts/contracts/extensions/LSP8VotesInitAbstract.sol b/packages/lsp8-contracts/contracts/extensions/LSP8VotesInitAbstract.sol index 1497da222..67715312b 100644 --- a/packages/lsp8-contracts/contracts/extensions/LSP8VotesInitAbstract.sol +++ b/packages/lsp8-contracts/contracts/extensions/LSP8VotesInitAbstract.sol @@ -11,7 +11,9 @@ import { _TYPEID_LSP8_VOTESDELEGATOR, _TYPEID_LSP8_VOTESDELEGATEE } from "./LSP8VotesConstants.sol"; -import {LSP1Utils} from "@lukso/lsp-smart-contracts/contracts/LSP1UniversalReceiver/LSP1Utils.sol"; +import { + LSP1Utils +} from "@lukso/lsp-smart-contracts/contracts/LSP1UniversalReceiver/LSP1Utils.sol"; /** * @dev Extension of LSP8 to support voting and delegation as implemented by {Votes}, where each individual NFT counts * as 1 vote unit. @@ -68,11 +70,14 @@ abstract contract LSP8VotesInitAbstract is return balanceOf(account); } - /** + /** * @dev Override of the {Votes-_delegate} function to add LSP1 notifications. * Notifies both the delegator and delegatee through LSP1. */ - function _delegate(address delegator, address delegatee) internal virtual override { + function _delegate( + address delegator, + address delegatee + ) internal virtual override { address currentDelegate = delegates(delegator); uint256 delegatorBalance = balanceOf(delegator);