mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 06:25:57 +00:00
make config params optional
This commit is contained in:
parent
402ee19722
commit
edbbaa160b
@ -121,6 +121,10 @@ class Test {
|
||||
|
||||
config(options, callback) {
|
||||
const self = this;
|
||||
if (typeof(options) === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
if (!callback) {
|
||||
callback = function () {
|
||||
};
|
||||
|
@ -2,7 +2,7 @@
|
||||
const SimpleStorage = embark.require('Embark/contracts/SimpleStorage');
|
||||
let accounts;
|
||||
|
||||
config({}, (err, theAccounts) => {
|
||||
config((err, theAccounts) => {
|
||||
accounts = theAccounts;
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user