Skip to content

Commit

Permalink
Fix chain id issue for rates microservice (#172)
Browse files Browse the repository at this point in the history
* Fix chain id issue

- Fix for chain id issue (chain id is getting overwritten by SDK instantiated network id)

* bumped version

- Bumped version to 1.36.6 (from 1.36.5)

* Fix incorrect version bump

* 1.36.6
  • Loading branch information
cryptonoyaiba authored Sep 20, 2022
1 parent 2ce75ea commit bb1e11c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "etherspot",
"version": "1.36.5",
"version": "1.36.6",
"description": "Etherspot SDK",
"keywords": [
"ether",
Expand Down
8 changes: 4 additions & 4 deletions src/sdk/rates/rates.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import { Service } from '../common';
import { RateData } from './classes';

export class RatesService extends Service {
async fetchExchangeRates(tokens: string[], chainId: number): Promise<RateData> {
async fetchExchangeRates(tokens: string[], ChainId: number): Promise<RateData> {
const { apiService } = this.services;

const { result } = await apiService.query<{
result: RateData;
}>(
gql`
query($tokens: [String!]!, $chainId: Int!) {
result: fetchExchangeRates(tokens: $tokens, chainId: $chainId) {
query($tokens: [String!]!, $ChainId: Int!) {
result: fetchExchangeRates(tokens: $tokens, chainId: $ChainId) {
errored
error
items {
Expand All @@ -27,7 +27,7 @@ export class RatesService extends Service {
{
variables: {
tokens,
chainId,
ChainId,
},
models: {
result: RateData,
Expand Down

0 comments on commit bb1e11c

Please sign in to comment.