Skip to content

Commit

Permalink
Replace static method with instance one
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaStebaev committed Apr 4, 2024
1 parent 0593a0d commit 691331e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
4 changes: 3 additions & 1 deletion python/src/skale_contracts/projects/ima.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ def __init__(self, project: Project, address: Address) -> None:
class ImaProject(Project):
"""Represents IMA project"""

github_repo = 'https://github.com/skalenetwork/ima/'
@property
def github_repo(self) -> str:
return 'https://github.com/skalenetwork/ima/'


class MainnetImaInstance(ImaInstance):
Expand Down
5 changes: 4 additions & 1 deletion python/src/skale_contracts/projects/skale_allocator.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ class SkaleAllocatorProject(Project):
@staticmethod
def name() -> str:
return 'skale-allocator'
github_repo = 'https://github.com/skalenetwork/skale-allocator/'

@property
def github_repo(self) -> str:
return 'https://github.com/skalenetwork/skale-allocator/'

def create_instance(self, address: Address) -> Instance:
return SkaleAllocatorInstance(self, address)
Expand Down
5 changes: 4 additions & 1 deletion python/src/skale_contracts/projects/skale_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ class SkaleManagerProject(Project):
@staticmethod
def name() -> str:
return 'skale-manager'
github_repo = 'https://github.com/skalenetwork/skale-manager/'

@property
def github_repo(self) -> str:
return 'https://github.com/skalenetwork/skale-manager/'

def create_instance(self, address: Address) -> Instance:
return SkaleManagerInstance(self, address)
Expand Down
1 change: 1 addition & 0 deletions python/test/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
flake8
mypy
pylint
types-requests

0 comments on commit 691331e

Please sign in to comment.