Skip to content

Commit

Permalink
fixed accepted params type for getAccountBalances
Browse files Browse the repository at this point in the history
  • Loading branch information
poocart committed Feb 7, 2024
1 parent 1526952 commit 9ce07bf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# Changelog

## [0.7.2] - 2024-02-07

### Added Changes
- Fixed `useEtherspotBalances` hook's `getAccountBalances` accepted params type

## [0.7.1] - 2024-02-06

### Added Changes
- Added `chainId` param to `useEtherspotBalances` hook's `getBalances` method
- Added `chainId` param to `useEtherspotBalances` hook's `getAccountBalances` method

## [0.7.0] - 2024-01-30

Expand Down
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,7 +1,7 @@
{
"name": "@etherspot/transaction-kit",
"description": "React Etherspot Transaction Kit",
"version": "0.7.1",
"version": "0.7.2",
"main": "dist/cjs/index.js",
"scripts": {
"rollup:build": "NODE_OPTIONS=--max-old-space-size=8192 rollup -c",
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useEtherspotBalances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useMemo } from 'react';
import useEtherspot from './useEtherspot';

interface IEtherspotBalancesHook {
getAccountBalances: (accountAddress?: string) => Promise<AccountBalance[]>;
getAccountBalances: (accountAddress?: string, chainId?: number) => Promise<AccountBalance[]>;
}

/**
Expand Down

0 comments on commit 9ce07bf

Please sign in to comment.