default contracts fields

This commit is contained in:
Iuri Matias 2018-06-07 20:09:07 -04:00
parent 1c6df9db8d
commit 402ee19722
2 changed files with 2 additions and 8 deletions

View File

@ -126,7 +126,7 @@ class Test {
};
}
if (!options.contracts) {
throw new Error(__('No contracts specified in the options'));
options.contracts = {};
}
self.ready = false;

View File

@ -2,13 +2,7 @@
const SimpleStorage = embark.require('Embark/contracts/SimpleStorage');
let accounts;
config({
contracts: {
"SimpleStorage": {
args: [100]
}
}
}, (err, theAccounts) => {
config({}, (err, theAccounts) => {
accounts = theAccounts;
});