Add helper to initialize a new instance with provider #128

Merged
bumi merged 4 commits from feature/simple-init into master 2019-05-17 07:37:11 +00:00
bumi commented 2019-05-14 09:28:18 +00:00 (Migrated from github.com)

So far we always had to initialze a provider and signer and pass those
to the kredits constructor.
This helper makes it easier to initialize a default ethers provider and
a default signer.

Examples:

Kredits.for({network: 'local'}).init();
Kredits.for({network: 'rinkeby'}, {apm: 'open.aragonpm.eth'}).init();
So far we always had to initialze a provider and signer and pass those to the kredits constructor. This helper makes it easier to initialize a default ethers provider and a default signer. Examples: ```js Kredits.for({network: 'local'}).init(); Kredits.for({network: 'rinkeby'}, {apm: 'open.aragonpm.eth'}).init(); ```
raucao (Migrated from github.com) reviewed 2019-05-14 09:41:02 +00:00
raucao (Migrated from github.com) commented 2019-05-14 09:41:02 +00:00

I think the linter should have caught the indentation here. It's off by one char.

I think the linter should have caught the indentation here. It's off by one char.
fsmanuel (Migrated from github.com) reviewed 2019-05-14 11:53:49 +00:00
fsmanuel (Migrated from github.com) commented 2019-05-14 11:53:49 +00:00

|| network === 'local' braucht man glaube ich nicht

` || network === 'local'` braucht man glaube ich nicht
fsmanuel (Migrated from github.com) approved these changes 2019-05-14 11:55:18 +00:00
fsmanuel (Migrated from github.com) left a comment

👯‍♂

👯‍♂
Sign in to join this conversation.
No description provided.