question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

weird chain usage in init

See original GitHub issue

right now i have to use

// initialize etherscan api client.
let etherscan = null;
if(config.get('api.etherscan.network') === 'main')
  etherscan = require('etherscan-api').init(config.get('api.etherscan.key'));
else
  etherscan = require('etherscan-api').init(config.get('api.etherscan.key'), config.get('api.etherscan.network'));

so if init() accepts an argument of ‘mainnet’ or so i could simply use;

const etherscan = require('etherscan-api').init(config.get('api.etherscan.key'), config.get('api.etherscan.network'));

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
m-tymchykcommented, Feb 27, 2018

@bonesoul, yes, mainnet option working now

0reactions
bonesoulcommented, Feb 27, 2018

is ‘mainnet’ option working now? @m-tymchyk

Read more comments on GitHub >

github_iconTop Results From Across the Web

Swift: Why can't I chain mutating functions after init()?
It's because Foo is a struct and a struct is a value type. This means that you cannot really mutate a Foo in...
Read more >
All linkerd components in Init:CrashLoopBackOff #3563 - GitHub
I'll have a look into the command that will tell us which links still reference the chain. If we can add that in...
Read more >
Initialization error - Modeling - The Stan Forums
Chain 1: Try specifying initial values, reducing ranges of constrained values, or reparameterizing the model. [1] “Error in sampler$call_sampler ...
Read more >
Question - Initialization Chain of Game Managers - Unity Forum
Hi, Developers! I need to implement the initialization chain of different game managers (not connected to each other): internet checker, ...
Read more >
Pm.sample gets stuck after init with cores > 1 - PyMC Discourse
Hi, novice pymc user here. I've built a linear regression model with ca. 90 predictors (features) and 3950 samples.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found