Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@
"@astar-network/metamask-astar-types": "^0.6.1",
"@ethersproject/bignumber": "^5.5.0",
"@layerzerolabs/scan-client": "^0.0.8",
"@polkadot/api": "12.3.1",
"@polkadot/api-contract": "12.3.1",
"@polkadot/extension-dapp": "0.51.1",
"@polkadot/hw-ledger": "13.0.2",
"@polkadot/keyring": "13.0.2",
"@polkadot/types": "12.3.1",
"@polkadot/types-known": "12.3.1",
"@polkadot/ui-keyring": "3.8.3",
"@polkadot/util": "13.0.2",
"@polkadot/util-crypto": "13.0.2",
"@polkadot/vue-identicon": "3.8.3",
"@polkadot/api": "16.4.2",
"@polkadot/api-contract": "16.4.2",
"@polkadot/extension-dapp": "0.61.4",
"@polkadot/hw-ledger": "13.5.3",
"@polkadot/keyring": "13.5.3",
"@polkadot/types": "16.4.2",
"@polkadot/types-known": "16.4.2",
"@polkadot/ui-keyring": "3.15.2",
"@polkadot/util": "13.5.3",
"@polkadot/util-crypto": "13.5.3",
"@polkadot/vue-identicon": "3.15.2",
"@quasar/app-webpack": "^3.11.2",
"@quasar/extras": "^1.16.7",
"@vue/apollo-composable": "^4.0.0-beta.4",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/snap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export async function installPolkadotSnap(): Promise<boolean> {

export async function getInjectedMetamaskExtension(): Promise<InjectedMetamaskExtension | null> {
const extensions = await web3EnablePromise;
return getMetamaskExtension(extensions || []) || null;
return getMetamaskExtension((extensions || []) as InjectedExtension[]) || null;
}

function getMetamaskExtension(
Expand Down
2 changes: 1 addition & 1 deletion src/v2/repositories/implementations/PolkasafeRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class PolkasafeRepository implements IPolkasafeRepository {
const polkasafeClient = container.get<PolkasafeWrapper>(Symbols.PolkasafeClient);
const { data, error } = await polkasafeClient.customTransactionAsMulti(
multisigAddress,
transaction,
transaction as any,
undefined,
isProxyAccount,
new BN(tip)
Expand Down
4 changes: 2 additions & 2 deletions src/v2/services/implementations/PolkadotWalletService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export class PolkadotWalletService extends WalletService implements IWalletServi
const extension = this.extensions.find((x) => x.name === sender.source);

if (extension) {
return extension.signer;
return extension.signer as Signer;
} else {
throw new Error(`Can't find polkadot extension for ${sender.address}, ${sender.source}`);
}
Expand All @@ -233,7 +233,7 @@ export class PolkadotWalletService extends WalletService implements IWalletServi
let retryCount = 0;
let extensions: InjectedExtension[] = [];
do {
extensions = await web3Enable('Astar portal');
extensions = (await web3Enable('Astar portal')) as InjectedExtension[];
await wait(100);
retryCount++;
} while (extensions.length === 0 && retryCount <= maxRetryCount);
Expand Down
Loading
Loading