Constructor configuration options #40
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/constructor-options"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This changes the function signature of the constructor but allows us to
pass any options.
Mainly this is now used for the ipfs configs.
Ref #37
this is a breaking change but kredits-web is currently not setting the IPFS config and hubot-kredits is using the setup function... so should be good to merge and then we can update the 'clients'
Only a little suggestion.
Do we need to track the update of hubot-kredits in the open issue?
What about a destructuring of the options to make it more easy to see the used options?
You sneaked that one in but I ❤️ it,
👍
@ -7,3 +7,3 @@
if (!config) {
config = {host: 'localhost', port: '5001', protocol: 'http'};
config = { host: 'localhost', port: '5001', protocol: 'http' };
}
👍
Typo. :)
iPad...
something like this:
let { address, abis, ipfsConfig } = options
is that correct?
what do you mean with " track the update of hubot-kredits in the open issue"?
Jup
I meant in the code. Someone coding on an iPad? :D
@bumi I don't know why I wrote it... I'll merge.
Ah you mean the
chaiID
😆 ? Not yet coding on an iPad...It was a bad idea to come back to Hamburg. Volley outside...
🌞