mirror of
https://github.com/AtHeartEngineering/bandada.git
synced 2026-01-09 22:47:57 -05:00
refactor: rename blockchainCredentialNetworks -> blockchainCredentialSupportedNetworks
blockchainCredentialNetworks was renamed blockchainCredentialSupportedNetworks for clarity. re #443
This commit is contained in:
@@ -23,9 +23,9 @@ TWITTER_REDIRECT_URI=
|
||||
TWITTER_CLIENT_ID=
|
||||
TWITTER_CLIENT_SECRET=
|
||||
|
||||
# The network name must be the same as the blockchainCredentialNetworks in `getSupportedNetworks`
|
||||
# in the `@bandada/utils` package but with capital letters and an underscore instead of a space
|
||||
# to separate words.
|
||||
# The network name must be the same as what appears in the `blockchainCredentialSupportedNetworks` list
|
||||
# exported from the `@bandada/utils` package but with capital letters and an underscore
|
||||
# instead of a space to separate words.
|
||||
|
||||
SEPOLIA_RPC_URL=
|
||||
POLYGON_MUMBAI_RPC_URL=
|
||||
|
||||
@@ -19,7 +19,7 @@ jest.mock("@bandada/utils", () => ({
|
||||
}),
|
||||
getGroups: () => []
|
||||
}),
|
||||
blockchainCredentialNetworks: ["Sepolia"]
|
||||
blockchainCredentialSupportedNetworks: ["Sepolia"]
|
||||
}))
|
||||
|
||||
jest.mock("@bandada/credentials", () => ({
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
Web2Context,
|
||||
BlockchainContext
|
||||
} from "@bandada/credentials"
|
||||
import { blockchainCredentialNetworks } from "@bandada/utils"
|
||||
import { blockchainCredentialSupportedNetworks } from "@bandada/utils"
|
||||
import { id } from "@ethersproject/hash"
|
||||
import {
|
||||
BadRequestException,
|
||||
@@ -109,7 +109,7 @@ export class CredentialsService {
|
||||
const { network } = JSON.parse(group.credentials).criteria
|
||||
|
||||
if (
|
||||
!blockchainCredentialNetworks.some(
|
||||
!blockchainCredentialSupportedNetworks.some(
|
||||
(n) => n.toLowerCase() === network.toLowerCase()
|
||||
)
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user