Skip to content

Commit c58ff4e

Browse files
committed
feat: add SUPPORTS_ERC20 feature in hbarevm
ticket: win-8142
1 parent 17884ca commit c58ff4e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

modules/sdk-coin-evm/src/lib/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ async function queryAddressBalanceHedera(
8787
baseUrl: string
8888
): Promise<Record<string, unknown>> {
8989
const address = query.address;
90-
const url = `${baseUrl}/accounts/${address}`;
90+
const url = `${baseUrl}/accounts/${address}?transactions=false`;
9191
const response = await request.get(url).send();
9292

9393
if (!response.ok) {
@@ -106,7 +106,7 @@ async function queryAddressBalanceHedera(
106106
*/
107107
async function getAddressNonceHedera(query: Record<string, string>, baseUrl: string): Promise<Record<string, unknown>> {
108108
const address = query.address;
109-
const accountUrl = `${baseUrl}/accounts/${address}`;
109+
const accountUrl = `${baseUrl}/accounts/${address}?transactions=false`;
110110
const response = await request.get(accountUrl).send();
111111

112112
if (!response.ok) {

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2145,6 +2145,7 @@ export const allCoinsAndTokens = [
21452145
CoinFeature.EVM_COMPATIBLE_WP,
21462146
CoinFeature.EVM_NON_BITGO_RECOVERY,
21472147
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
2148+
CoinFeature.SUPPORTS_ERC20,
21482149
]
21492150
),
21502151
account(

0 commit comments

Comments
 (0)