Skip to content

Commit 6d38f55

Browse files
committed
refactor(api): add types for the context variable
1 parent 6077740 commit 6d38f55

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/api/src/app/credentials/credentials.service.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import {
33
getProvider,
44
BlockchainProvider,
55
Web2Provider,
6-
providers
6+
providers,
7+
Web2Context,
8+
BlockchainContext
79
} from "@bandada/credentials"
810
import { id } from "@ethersproject/hash"
911
import {
@@ -101,7 +103,7 @@ export class CredentialsService {
101103

102104
let accountHash: string
103105

104-
let context
106+
let context: Web2Context | BlockchainContext
105107

106108
if (address) {
107109
const web3providerRpcURL =

0 commit comments

Comments
 (0)