Skip to content

Commit 26b7136

Browse files
committed
Upgrade to the latest Polkadot version
1 parent 57c15ee commit 26b7136

File tree

5 files changed

+718
-333
lines changed

5 files changed

+718
-333
lines changed

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@
3131
"@astar-network/metamask-astar-types": "^0.6.1",
3232
"@ethersproject/bignumber": "^5.5.0",
3333
"@layerzerolabs/scan-client": "^0.0.8",
34-
"@polkadot/api": "12.3.1",
35-
"@polkadot/api-contract": "12.3.1",
36-
"@polkadot/extension-dapp": "0.51.1",
37-
"@polkadot/hw-ledger": "13.0.2",
38-
"@polkadot/keyring": "13.0.2",
39-
"@polkadot/types": "12.3.1",
40-
"@polkadot/types-known": "12.3.1",
41-
"@polkadot/ui-keyring": "3.8.3",
42-
"@polkadot/util": "13.0.2",
43-
"@polkadot/util-crypto": "13.0.2",
44-
"@polkadot/vue-identicon": "3.8.3",
34+
"@polkadot/api": "16.4.2",
35+
"@polkadot/api-contract": "16.4.2",
36+
"@polkadot/extension-dapp": "0.61.4",
37+
"@polkadot/hw-ledger": "13.5.3",
38+
"@polkadot/keyring": "13.5.3",
39+
"@polkadot/types": "16.4.2",
40+
"@polkadot/types-known": "16.4.2",
41+
"@polkadot/ui-keyring": "3.15.2",
42+
"@polkadot/util": "13.5.3",
43+
"@polkadot/util-crypto": "13.5.3",
44+
"@polkadot/vue-identicon": "3.15.2",
4545
"@quasar/app-webpack": "^3.11.2",
4646
"@quasar/extras": "^1.16.7",
4747
"@vue/apollo-composable": "^4.0.0-beta.4",

src/modules/snap/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export async function installPolkadotSnap(): Promise<boolean> {
6969

7070
export async function getInjectedMetamaskExtension(): Promise<InjectedMetamaskExtension | null> {
7171
const extensions = await web3EnablePromise;
72-
return getMetamaskExtension(extensions || []) || null;
72+
return getMetamaskExtension((extensions || []) as InjectedExtension[]) || null;
7373
}
7474

7575
function getMetamaskExtension(

src/v2/repositories/implementations/PolkasafeRepository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class PolkasafeRepository implements IPolkasafeRepository {
2020
const polkasafeClient = container.get<PolkasafeWrapper>(Symbols.PolkasafeClient);
2121
const { data, error } = await polkasafeClient.customTransactionAsMulti(
2222
multisigAddress,
23-
transaction,
23+
transaction as any,
2424
undefined,
2525
isProxyAccount,
2626
new BN(tip)

src/v2/services/implementations/PolkadotWalletService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export class PolkadotWalletService extends WalletService implements IWalletServi
218218
const extension = this.extensions.find((x) => x.name === sender.source);
219219

220220
if (extension) {
221-
return extension.signer;
221+
return extension.signer as Signer;
222222
} else {
223223
throw new Error(`Can't find polkadot extension for ${sender.address}, ${sender.source}`);
224224
}
@@ -233,7 +233,7 @@ export class PolkadotWalletService extends WalletService implements IWalletServi
233233
let retryCount = 0;
234234
let extensions: InjectedExtension[] = [];
235235
do {
236-
extensions = await web3Enable('Astar portal');
236+
extensions = (await web3Enable('Astar portal')) as InjectedExtension[];
237237
await wait(100);
238238
retryCount++;
239239
} while (extensions.length === 0 && retryCount <= maxRetryCount);

0 commit comments

Comments
 (0)