Skip to content

Commit

Permalink
[+] updated @multiversx/sdk-dapp to 2.18.3
Browse files Browse the repository at this point in the history
[+] updated branding: xPortal instead of Maiar, use https://tools.multiversx.com
[+] updated config to avoid error logs generated by @WalletConnect ( see more: WalletConnect/walletconnect-monorepo#1908 )
  • Loading branch information
radumojic committed Jul 17, 2023
1 parent 2a83e11 commit 7a09237
Show file tree
Hide file tree
Showing 5 changed files with 340 additions and 790 deletions.
6 changes: 5 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
transpilePackages: ['@multiversx/sdk-dapp']
transpilePackages: ['@multiversx/sdk-dapp'],
webpack: (config) => {
config.externals.push('pino-pretty', 'lokijs', 'encoding');
return config;
}
};

module.exports = nextConfig;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@fortawesome/free-solid-svg-icons": "6.4.0",
"@fortawesome/react-fontawesome": "0.2.0",
"@multiversx/sdk-core": "12.4.3",
"@multiversx/sdk-dapp": "2.17.2",
"@multiversx/sdk-dapp": "2.18.3",
"@multiversx/sdk-network-providers": "1.5.0",
"@next/font": "13.1.1",
"autoprefixer": "10.4.14",
Expand Down
7 changes: 1 addition & 6 deletions src/app/unlock/components/UnlockContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,8 @@ export const UnlockContent = () => {
{...commonProps}
/>
<WalletConnectLoginButton
loginButtonText='Maiar'
loginButtonText='xPortal'
{...commonProps}
{...(walletConnectV2ProjectId
? {
isWalletConnectV2: true
}
: {})}
/>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const contractAddress =
'erd1qqqqqqqqqqqqqpgq72l6vl07fkn3alyfq753mcy4nakm0l72396qkcud5x';
'erd1qqqqqqqqqqqqqpgq72l6vl07fkn3alyfq753mcy4nakm0l72396qkcud5x';

export const dAppName = 'NextJS Dapp';

Expand All @@ -8,7 +8,7 @@ export const walletConnectV2ProjectId = '9b1a9564f91cb659ffe21b73d5c4e2d8';

export const apiTimeout = 6000;
export const transactionSize = 15;
export const TOOLS_API_URL = 'https://tools.elrond.com';
export const TOOLS_API_URL = 'https://tools.multiversx.com';
/**
* Calls to these domains will use `nativeAuth` Baerer token
*/
Expand Down
Loading

0 comments on commit 7a09237

Please sign in to comment.