Skip to content

Commit

Permalink
fix decnx not reactive
Browse files Browse the repository at this point in the history
  • Loading branch information
zapaz committed May 15, 2024
1 parent 461f340 commit 1667ea3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
5 changes: 0 additions & 5 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
[submodule "contracts/lib/forge-std"]
path = contracts/lib/forge-std
url = https://github.com/foundry-rs/forge-std
branch = v1
[submodule "contracts/lib/openzeppelin-contracts"]
path = contracts/lib/openzeppelin-contracts
url = https://github.com/openzeppelin/openzeppelin-contracts
branch = release-v4.8
[submodule "contracts/lib/openzeppelin-contracts-upgradeable"]
path = contracts/lib/openzeppelin-contracts-upgradeable
url = https://github.com/openzeppelin/openzeppelin-contracts-upgradeable
branch = release-v4.8
[submodule "contracts/lib/OpenNFTs"]
path = contracts/lib/OpenNFTs
url = https://github.com/kredeum/OpenNFTs
branch = main
[submodule "contracts/lib/forge-deploy-lite"]
path = contracts/lib/forge-deploy-lite
url = https://github.com/zapaz/forge-deploy-lite
branch = dev
2 changes: 0 additions & 2 deletions svelte/src/components/Nft/NftMintPopup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
import {
textShort,
explorerTxUrl,
explorerNftUrl,
nftUrl,
displayEther,
treasuryFee,
getDappUrl,
Expand Down
9 changes: 6 additions & 3 deletions svelte/src/helpers/metamask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,14 @@ const _handleChainId = (_chainId: string): void => {
};

const _handleAccounts = (accounts: Array<string>): void => {
if (accounts?.length === 0) return;
// console.log("_handleAccounts:", accounts);

metamaskSigner.set(get(metamaskProvider).getSigner(0));
metamaskSignerAddress.set(getChecksumAddress(accounts[0]));
if (accounts.length >= 1) {
metamaskSigner.set(get(metamaskProvider).getSigner(0));
metamaskSignerAddress.set(getChecksumAddress(accounts[0]));
} else {
metamaskSignerAddress.set("");
}
};

const metamaskConnect = async (): Promise<void> => {
Expand Down

0 comments on commit 1667ea3

Please sign in to comment.