Skip to content

Commit 5b8612d

Browse files
Merge pull request #233 from multiversx/development
Updated sdk-dapp (#232)
2 parents cf6bdc1 + 241be15 commit 5b8612d

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"@fortawesome/free-solid-svg-icons": "6.5.1",
1111
"@fortawesome/react-fontawesome": "0.2.0",
1212
"@multiversx/sdk-core": "13.2.1",
13-
"@multiversx/sdk-dapp": "2.33.6",
13+
"@multiversx/sdk-dapp": "2.34.2",
1414
"@multiversx/sdk-network-providers": "2.4.3",
1515
"axios": "1.6.5",
1616
"classnames": "2.3.2",

src/hooks/transactions/useSendPingPongTransaction.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const useSendPingPongTransaction = ({
4848
sessionStorage.getItem(type)
4949
);
5050

51-
const network = useGetNetworkConfig();
51+
const { network } = useGetNetworkConfig();
5252
const { address, account } = useGetAccountInfo();
5353

5454
const transactionStatus = useTrackTransactionStatus({
@@ -139,7 +139,7 @@ export const useSendPingPongTransaction = ({
139139
receiver: contractAddress,
140140
gasLimit: 60000000,
141141
gasPrice: GAS_PRICE,
142-
chainID: network.chainID,
142+
chainID: network.chainId,
143143
nonce: account.nonce,
144144
sender: address,
145145
version: VERSION

src/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ import { App } from './App';
44

55
const container = document.getElementById('root');
66
const root = createRoot(container as HTMLElement);
7-
root.render(<App />);
7+
root.render((<App />) as any);

src/pages/Dashboard/widgets/BatchTransactions/BatchTransactions.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import {
2828
export const BatchTransactions = ({ callbackRoute }: WidgetProps) => {
2929
const { setSendBatchTransactionsOnDemand } = useBatchTransactionContext();
3030
const { address, account } = useGetAccountInfo();
31-
const network = useGetNetworkConfig();
31+
const { network } = useGetNetworkConfig();
3232
const { batches } = useGetBatches();
3333
const { hasPendingTransactions } = useGetPendingTransactions();
3434
const [trackBatchId, setTrackBatchId] = useState(
@@ -65,7 +65,7 @@ export const BatchTransactions = ({ callbackRoute }: WidgetProps) => {
6565
const { batchId } = await signAndAutoSendBatchTransactions({
6666
address,
6767
nonce: account.nonce,
68-
chainID: network.chainID,
68+
chainID: network.chainId,
6969
callbackRoute
7070
});
7171

@@ -81,7 +81,7 @@ export const BatchTransactions = ({ callbackRoute }: WidgetProps) => {
8181
const { newBatchSessionId, sessionId } = await sendBatchTransactions({
8282
address,
8383
nonce: account.nonce,
84-
chainID: network.chainID,
84+
chainID: network.chainId,
8585
callbackRoute
8686
});
8787

@@ -98,7 +98,7 @@ export const BatchTransactions = ({ callbackRoute }: WidgetProps) => {
9898
const { batchId: currentBatchId } = await swapAndLockTokens({
9999
address,
100100
nonce: account.nonce,
101-
chainID: network.chainID,
101+
chainID: network.chainId,
102102
callbackRoute
103103
});
104104

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -1064,10 +1064,10 @@
10641064
resolved "https://registry.yarnpkg.com/@multiversx/sdk-dapp-utils/-/sdk-dapp-utils-0.0.1.tgz#ba8bd9319649d45dea9a76beca1e03d957dea2cb"
10651065
integrity sha512-fl3TdES93Jc4T559BI+QxNRGRUTabb7TiAXHKL9g6mbLD+silK+5euAoDpPBkbZpVFnfsXQssUVuyKBV4Ine6w==
10661066

1067-
"@multiversx/sdk-dapp@2.33.6":
1068-
version "2.33.6"
1069-
resolved "https://registry.yarnpkg.com/@multiversx/sdk-dapp/-/sdk-dapp-2.33.6.tgz#b84e225c1615e958fd60f061dd423f22813b1f41"
1070-
integrity sha512-NR0yWmKASEkgK8xvTn+hyfg8S717z6fe1A2Vw5XLVBYPgAsEzH09Tpg0GxKDMIpwNjtOGHnaKb4wbbc3lU8DZg==
1067+
"@multiversx/sdk-dapp@2.34.2":
1068+
version "2.34.2"
1069+
resolved "https://registry.yarnpkg.com/@multiversx/sdk-dapp/-/sdk-dapp-2.34.2.tgz#b2d1d35613cfa0486c4f7ee39bc19f76dce7b4db"
1070+
integrity sha512-+Yp+Nx0CfdIJybJsuybrWCkIBQMlyUlcWabB6c81rtvA/LS6K/yPozGcDepFQ0LYARXHDur6mv8eaT3c7wis6w==
10711071
dependencies:
10721072
"@lifeomic/axios-fetch" "3.0.1"
10731073
"@metamask/providers" "16.0.0"

0 commit comments

Comments
 (0)