Skip to content

Commit

Permalink
Updated polling interval based on network config (#33)
Browse files Browse the repository at this point in the history
* Updated polling interval based on network config

* Updated polling interval based on network config
  • Loading branch information
razvantomegea authored Jul 17, 2024
1 parent c298efe commit 1b449d3
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 102 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@fortawesome/free-solid-svg-icons": "6.5.1",
"@fortawesome/react-fontawesome": "0.2.0",
"@multiversx/sdk-core": "13.0.1",
"@multiversx/sdk-dapp": "2.33.5",
"@multiversx/sdk-dapp": "2.34.0",
"@multiversx/sdk-dapp-core": "0.0.0-alpha.6",
"@multiversx/sdk-dapp-form": "0.10.10",
"@multiversx/sdk-js-web-wallet-io": "0.1.0",
Expand Down
6 changes: 4 additions & 2 deletions src/pages/Send/hooks/useSendForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ import { FormFieldsEnum, SendTypeEnum, TokenOptionType } from '../types';

export const useSendForm = () => {
const { address, account } = useGetAccountInfo();
const { chainID } = useGetNetworkConfig();
const {
network: { chainId }
} = useGetNetworkConfig();
const { sendTransactions } = useSendTransactions();
const [searchParams, setSearchParams] = useSearchParams();
const tokenIdParam = searchParams.get(SearchParamsEnum.tokenId);
Expand Down Expand Up @@ -100,7 +102,7 @@ export const useSendForm = () => {
const transaction = prepareTransaction({
amount: isEgldSend ? String(values.amount) : '0',
balance: account.balance,
chainId: chainID,
chainId,
data: values[FormFieldsEnum.data].trim(),
gasLimit: String(values[FormFieldsEnum.gasLimit]),
gasPrice: String(GAS_PRICE),
Expand Down
Loading

0 comments on commit 1b449d3

Please sign in to comment.