Skip to content

Commit

Permalink
Fetch only active tokens on gateway UI component (#48)
Browse files Browse the repository at this point in the history
* allow filtering on active tokens

* bump version

---------

Co-authored-by: Robert Leonard <[email protected]>
  • Loading branch information
Robert-H-Leonard and Robert Leonard authored May 21, 2024
1 parent 4f49445 commit a2a2af2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gateway-eth-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@identity.com/gateway-evm-ts-client",
"version": "0.1.0",
"version": "0.1.1",
"description": "Adapter library for Identity.com gateway token system on Ethereum",
"main": "dist/index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions gateway-eth-ts/src/service/GatewayTsInternal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ export class GatewayTsInternal<
return result.data != "0";
}

async getFirstTokenOnNetwork(owner: string, network: bigint): Promise<TokenData | null> {
const [tokenId] = await this.getTokenIdsByOwnerAndNetwork(owner, network);
async getFirstTokenOnNetwork(owner: string, network: bigint, onlyActive: boolean = false): Promise<TokenData | null> {
const [tokenId] = await this.getTokenIdsByOwnerAndNetwork(owner, network, onlyActive);
if (!tokenId) return null;

const rawData = await this.gatewayTokenContract.getToken(
Expand Down

0 comments on commit a2a2af2

Please sign in to comment.