Skip to content

Commit

Permalink
test: update getAddrFromStarkName network
Browse files Browse the repository at this point in the history
  • Loading branch information
irisdv committed Nov 25, 2024
1 parent 0befe45 commit bc6ff78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/starknet-snap/src/getAddrFromStarkName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function getAddrFromStarkName(params: ApiParams) {
);
}

const starkName = requestParamsObj.starkName;
const { starkName } = requestParamsObj;

const network = getNetworkFromChainId(state, requestParamsObj.chainId);

Expand Down
4 changes: 2 additions & 2 deletions packages/starknet-snap/test/src/getAddrFromStarkName.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import sinonChai from 'sinon-chai';
import { WalletMock } from '../wallet.mock.test';
import * as utils from '../../src/utils/starknetUtils';
import { SnapState } from '../../src/types/snapState';
import { STARKNET_SEPOLIA_TESTNET_NETWORK } from '../../src/utils/constants';
import { STARKNET_MAINNET_NETWORK } from '../../src/utils/constants';
import { Mutex } from 'async-mutex';
import {
ApiParams,
Expand All @@ -20,7 +20,7 @@ describe('Test function: getAddrFromStarkName', function () {
const state: SnapState = {
accContracts: [],
erc20Tokens: [],
networks: [STARKNET_SEPOLIA_TESTNET_NETWORK],
networks: [STARKNET_MAINNET_NETWORK],
transactions: [],
};
const apiParams: ApiParams = {
Expand Down

0 comments on commit bc6ff78

Please sign in to comment.