diff --git a/local-tests/tests/testEthAuthSigToEncryptDecryptString.ts b/local-tests/tests/testEthAuthSigToEncryptDecryptString.ts index 8ade5e1586..744dc55cdc 100644 --- a/local-tests/tests/testEthAuthSigToEncryptDecryptString.ts +++ b/local-tests/tests/testEthAuthSigToEncryptDecryptString.ts @@ -3,6 +3,7 @@ import { ILitNodeClient } from '@lit-protocol/types'; import { AccessControlConditions } from 'local-tests/setup/accs/accs'; import { TinnyEnvironment } from 'local-tests/setup/tinny-environment'; import { log } from '@lit-protocol/misc'; +import { CENTRALISATION_BY_NETWORK } from '@lit-protocol/constants'; /** * Test Commands: @@ -15,6 +16,12 @@ export const testEthAuthSigToEncryptDecryptString = async ( ) => { const alice = await devEnv.createRandomPerson(); + if (CENTRALISATION_BY_NETWORK[devEnv.network] === 'decentralised') { + // The capacity credits NFT owner automatically uses the capacity credits + // to pay for the encryption + await alice.mintCapacityCreditsNFT(); + } + const accs = AccessControlConditions.getEmvBasicAccessControlConditions({ userAddress: alice.authSig.address, });