Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Use bigger initial balance for test accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed Jul 27, 2019
1 parent fe1b1df commit 15ceb74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test_environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const NodeEnvironment = require('jest-environment-node');
const nearlib = require('nearlib');
const fs = require('fs');

const INITIAL_BALANCE = '100000000000';
const testAccountName = 'test.near';

class LocalTestEnvironment extends NodeEnvironment {
Expand Down Expand Up @@ -30,7 +31,7 @@ class LocalTestEnvironment extends NodeEnvironment {
const randomKey = await nearlib.KeyPair.fromRandom('ed25519');
const data = [...fs.readFileSync('./out/main.wasm')];
await config.deps.keyStore.setKey(config.networkId, config.contractName, randomKey);
await masterAccount.createAndDeployContract(config.contractName, randomKey.getPublicKey(), data, 1000000);
await masterAccount.createAndDeployContract(config.contractName, randomKey.getPublicKey(), data, INITIAL_BALANCE);

await super.setup();
}
Expand Down

0 comments on commit 15ceb74

Please sign in to comment.