Skip to content

Commit

Permalink
Handle session and custom variable name (#200)
Browse files Browse the repository at this point in the history
* Reset chainId name to ChainId to allow custom chainId for account Investments

* Updated the package version
  • Loading branch information
kaushalrajbacancy authored Dec 9, 2022
1 parent 335db6c commit 9d717b2
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.42.0",
"version": "1.42.1",
"description": "Etherspot SDK",
"keywords": [
"ether",
Expand Down
8 changes: 4 additions & 4 deletions src/sdk/account/account.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,15 @@ export class AccountService extends Service {
return result;
}

async getAccountInvestments(account: string, chainId?: number, apps?: string[], provider?: string): Promise<AccountInvestments> {
async getAccountInvestments(account: string, ChainId?: number, apps?: string[], provider?: string): Promise<AccountInvestments> {
const { apiService } = this.services;

const { result } = await apiService.query<{
result: AccountInvestments;
}>(
gql`
query($chainId: Int!, $account: String!, $apps: [String!], $provider: String) {
result: accountInvestments(chainId: $chainId, account: $account, apps: $apps, provider: $provider) {
query($ChainId: Int!, $account: String!, $apps: [String!], $provider: String) {
result: accountInvestments(chainId: $ChainId, account: $account, apps: $apps, provider: $provider) {
items {
name
network
Expand All @@ -288,7 +288,7 @@ export class AccountService extends Service {
{
variables: {
account,
chainId,
ChainId,
apps,
provider
},
Expand Down

0 comments on commit 9d717b2

Please sign in to comment.