env-contract.js 376 B

12345678910
  1. extendEnvironment(env => {
  2. const { contract } = env;
  3. env.contract = function (name, body) {
  4. // remove the default account from the accounts list used in tests, in order
  5. // to protect tests against accidentally passing due to the contract
  6. // deployer being used subsequently as function caller
  7. contract(name, accounts => body(accounts.slice(1)));
  8. };
  9. });