Files
openzeppelin-contracts/buidler/env-contract.js
Francisco Giordano 1e78adc28c Refactor buidler config
2020-11-06 14:28:01 -03:00

11 lines
376 B
JavaScript

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