Skip to content
Merged
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
5 changes: 1 addition & 4 deletions packages/core/src/__integrationtests__/Attestation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

import type { ICredential, IClaim, KeyringPair } from '@kiltprotocol/types'
import { DemoKeystore, FullDidDetails } from '@kiltprotocol/did'
import { BN } from '@polkadot/util'
import { Crypto } from '@kiltprotocol/utils'
import { Attestation } from '../attestation/Attestation'
import { getRevokeTx, getRemoveTx } from '../attestation/Attestation.chain'
Expand Down Expand Up @@ -49,9 +48,7 @@ beforeAll(async () => {

it('fetches the correct deposit amount', async () => {
const depositAmount = await Attestation.queryDepositAmount()
expect(depositAmount.toString()).toStrictEqual(
new BN(134900000000000).toString()
)
expect(depositAmount.toString()).toMatchInlineSnapshot('"120900000000000"')
})

describe('handling attestations that do not exist', () => {
Expand Down
5 changes: 1 addition & 4 deletions packages/core/src/__integrationtests__/Delegation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import type { ICType, IDelegationNode, KeyringPair } from '@kiltprotocol/types'
import { Permission } from '@kiltprotocol/types'
import { DemoKeystore, FullDidDetails } from '@kiltprotocol/did'
import { randomAsHex } from '@polkadot/util-crypto'
import { BN } from '@polkadot/util'
import { Attestation } from '../attestation/Attestation'
import { Claim } from '../claim/Claim'
import { RequestForAttestation } from '../requestforattestation/RequestForAttestation'
Expand Down Expand Up @@ -105,9 +104,7 @@ beforeAll(async () => {

it('fetches the correct deposit amount', async () => {
const depositAmount = await DelegationNode.queryDepositAmount()
expect(depositAmount.toString()).toStrictEqual(
new BN(1000000000000000).toString()
)
expect(depositAmount.toString()).toMatchInlineSnapshot('"1000000000000000"')
})

it('should be possible to delegate attestation rights', async () => {
Expand Down
4 changes: 1 addition & 3 deletions packages/core/src/__integrationtests__/Did.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ beforeAll(async () => {

it('fetches the correct deposit amount', async () => {
const depositAmount = await DidChain.queryDepositAmount()
expect(depositAmount.toString()).toStrictEqual(
new BN(2071900000000000).toString()
)
expect(depositAmount.toString()).toMatchInlineSnapshot('"2007900000000000"')
})

describe('write and didDeleteTx', () => {
Expand Down