Opt-in, mainnet-only deposit-address API
This commit is contained in:
@@ -107,3 +107,12 @@ test('operator preflight is read-only, fails closed, and does not disclose crede
|
||||
assert.equal(existsSync(dataDir), false);
|
||||
} finally { await rm(dir, { recursive: true, force: true }); }
|
||||
});
|
||||
|
||||
test('Monero deposit enrollment API cannot be enabled on testnet', () => {
|
||||
const result = spawnSync(process.execPath, ['--experimental-strip-types', 'server/index.ts'], {
|
||||
env: { ...process.env, WIKIDECK_NETWORK: 'testnet', WIKIDECK_MONERO_DEPOSIT_ENROLLMENT: '1' },
|
||||
encoding: 'utf8', timeout: 30000,
|
||||
});
|
||||
assert.equal(result.status, 1);
|
||||
assert.match(result.stderr, /Monero deposit enrollment requires the mainnet profile/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user