Repository: skalenetwork/filestorage (language: python)

Issue:
Fix deprecated method



Discussion / hints:

Fix patch:
diff --git a/.github/workflows/issue_check.yml b/.github/workflows/issue_check.yml
new file mode 100644
index 0000000..ee5ec6b
--- /dev/null
+++ b/.github/workflows/issue_check.yml
@@ -0,0 +1,19 @@
+name: Get linked issues
+on:
+  pull_request:
+    types: [ edited, synchronize, opened, reopened ]
+
+jobs:
+  check-linked-issues:
+    name: Check if pull request has linked issues
+    runs-on: ubuntu-latest
+    steps:
+      - name: Get issues
+        id: get-issues
+        uses: mondeja/pr-linked-issues-action@v2
+        env:
+          GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
+      - name: PR has not linked issues
+        if: join(steps.get-issues.outputs.issues) == ''
+        run: 
+          exit 1
diff --git a/predeployed/filestorage_predeployed/filestorage_generator.py b/predeployed/filestorage_predeployed/filestorage_generator.py
index c0dde4a..e2440ce 100644
--- a/predeployed/filestorage_predeployed/filestorage_generator.py
+++ b/predeployed/filestorage_predeployed/filestorage_generator.py
@@ -36,7 +36,7 @@ class FileStorageGenerator(AccessControlEnumerableGenerator):
     META_FILENAME = 'FileStorage.meta.json'
     DEFAULT_ADMIN_ROLE = (0).to_bytes(32, 'big')
     STORAGE_SPACE_SLOT = int.from_bytes(
-        w3.solidityKeccak(['string'], ['STORAGE_SPACE_SLOT']),
+        w3.solidity_keccak(['string'], ['STORAGE_SPACE_SLOT']),
         byteorder='big')
 
     # ---------- storage ----------
diff --git a/predeployed/setup.py b/predeployed/setup.py
index 84c74c2..2b2f272 100644
--- a/predeployed/setup.py
+++ b/predeployed/setup.py
@@ -27,7 +27,7 @@
     author_email='support@skalelabs.com',
     url='https://github.com/skalenetwork/filestorage',
     install_requires=[
-        "predeployed-generator >= 1.1.0a1"
+        "predeployed-generator >= 1.1.0"
     ],
     python_requires='>=3.7,<4',
     extras_require=extras_require,


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 3727fce..5dcbc86 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -3,7 +3,7 @@ on: [push, pull_request]
 
 jobs:
   test:
-    runs-on: ubuntu-18.04
+    runs-on: ubuntu-latest
     env:
       SCHAIN_VERSION: 3.9.1-develop.4
       SCHAIN_OWNER_PK: ${{ secrets.SCHAIN_OWNER_PK }}
@@ -51,7 +51,7 @@ jobs:
         run: |
           npm test
   predeployed-test:
-    runs-on: ubuntu-18.04
+    runs-on: ubuntu-latest
     env:
       SCHAIN_VERSION: 3.7.5-stable.0
       SCHAIN_OWNER_PK: ${{ secrets.SCHAIN_OWNER_PK }}
@@ -98,7 +98,7 @@ jobs:
         run: |
           npm run predeployed-test
   coverage:
-    runs-on: ubuntu-18.04
+    runs-on: ubuntu-latest
     env:
       CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
     steps: