From a61dc9836bec10ada8d55c69b238f17307e43566 Mon Sep 17 00:00:00 2001 From: Zouheir Layine Date: Mon, 5 May 2025 17:15:58 +0100 Subject: [PATCH 1/2] fix transaction signing --- resources/js/store/transaction.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/resources/js/store/transaction.ts b/resources/js/store/transaction.ts index e29225e..53214b2 100644 --- a/resources/js/store/transaction.ts +++ b/resources/js/store/transaction.ts @@ -45,10 +45,6 @@ export const useTransactionStore = defineStore('transaction', { const call = transaction.encodedData; const genesis = genesisHash.toHex(); // The genesis block const mortalEra = new GenericExtrinsicEra(api.registry, { current: blockNumber.toNumber(), period: 64 }); - const metadataHash = - transaction.signingPayloadJson.metadataHash === '00' - ? '0x0000000000000000000000000000000000000000000000000000000000000000' - : transaction.signingPayloadJson.metadataHash; const payloadToSign: SignerPayloadJSON = { specVersion: runtime.specVersion.toHex(), @@ -63,8 +59,6 @@ export const useTransactionStore = defineStore('transaction', { signedExtensions: api.registry.signedExtensions, tip: '0x00', version: 4, - metadataHash: metadataHash, - mode: transaction.signingPayloadJson.mode, }; const extrinsic = api.registry.createType( From 961ddfa62829263afd5bf6f0581112a197d468a6 Mon Sep 17 00:00:00 2001 From: Zouheir Layine Date: Mon, 5 May 2025 17:18:35 +0100 Subject: [PATCH 2/2] fix --- .github/workflows/deploy.yml | 6 +++--- .github/workflows/lint.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b420e06..cb98e31 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,12 +11,12 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: - node-version: '18' + node-version: '20' cache: 'npm' - name: Install dependencies diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a5f0f12..c6f1c65 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: '20' cache: 'npm'