You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once I do requests like await this.clientMainnet.accounts.getAll() I see that requests are made to api.testnet.kiln.fi even if mainnet sdk instance was used. Going further, I changed the order of initialization in the constructor (testnet first, mainnet second) all requests - no matter what instance was used - were made to api.kiln.fi.
Can you replicate this behavior? Are both instances sharing the same axios instance, maybe? If that's the root cause, then every Kiln sdk class instance should get its axios instance IMO. IMO, this is more intuitive, and instances must not be recreated before usage.
The text was updated successfully, but these errors were encountered:
I try to use a multi Kiln sdk instance approach that looks similar to this:
Once I do requests like
await this.clientMainnet.accounts.getAll()
I see that requests are made toapi.testnet.kiln.fi
even if mainnet sdk instance was used. Going further, I changed the order of initialization in theconstructor
(testnet first, mainnet second) all requests - no matter what instance was used - were made toapi.kiln.fi
.Can you replicate this behavior? Are both instances sharing the same axios instance, maybe? If that's the root cause, then every Kiln sdk class instance should get its axios instance IMO. IMO, this is more intuitive, and instances must not be recreated before usage.
The text was updated successfully, but these errors were encountered: