0

I am trying to get tests running and have started with a very simple one that should always pass. However, I am getting an error relating to the account balance. Code for the test is...

const UTO = artifacts.require('UTO');
let accounts;

config({
    deployment: {
      accounts: [
        // you can configure custom accounts with a custom balance
        // see https://framework.embarklabs.io/docs/contracts_testing.html#Configuring-accounts
        {   
            nodeAccounts: true,
            password: 'config/development/password',
            balance: '10 ether'
        }
      ]
    },
    contracts: {
      "UTO": {}
    }
  }, (_err, web3_accounts) => {
    accounts = web3_accounts
  });

contract('UTO', () => {
    it('should pass', () => {
      assert.ok(true);
    });
});

I did try changing 'deployment' to 'blockchain' with no success. I guess I am missing something simple here.

TIA

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.