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) { if (!options.contracts) {
throw new Error(__('No contracts specified in the options')); options.contracts = {};
} }
self.ready = false; self.ready = false;

View File

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