diff --git a/packages/bridge-ui/src/components/TokenDropdown/TokenDropdown.svelte b/packages/bridge-ui/src/components/TokenDropdown/TokenDropdown.svelte index 6bfe56424a3..b2f23933788 100644 --- a/packages/bridge-ui/src/components/TokenDropdown/TokenDropdown.svelte +++ b/packages/bridge-ui/src/components/TokenDropdown/TokenDropdown.svelte @@ -23,7 +23,7 @@ import { getTokenAddresses } from '$libs/token/getTokenAddresses'; import { getLogger } from '$libs/util/logger'; import { uid } from '$libs/util/uid'; - import { account } from '$stores/account'; + import { type Account, account } from '$stores/account'; import { connectedSourceChain } from '$stores/network'; import DialogView from './DialogView.svelte'; @@ -174,10 +174,11 @@ if (srcChain && destChain) updateBalance($account?.address, srcChain.id, destChain.id); }; - const onAccountChange = () => { + const onAccountChange = (newAccount: Account, prevAccount?: Account) => { const srcChain = $connectedSourceChain; const destChain = $destNetwork; - if (srcChain && destChain) updateBalance($account?.address, srcChain.id, destChain.id); + if (destChain && srcChain && (newAccount?.chainId === prevAccount?.chainId || !newAccount || !prevAccount)) + updateBalance($account?.address, srcChain.id, destChain.id); }; $: textClass = disabled ? 'text-secondary-content' : 'font-bold '; diff --git a/packages/bridge-ui/src/components/Transactions/Transaction.svelte b/packages/bridge-ui/src/components/Transactions/Transaction.svelte index c00002dece5..c5606a76526 100644 --- a/packages/bridge-ui/src/components/Transactions/Transaction.svelte +++ b/packages/bridge-ui/src/components/Transactions/Transaction.svelte @@ -92,28 +92,29 @@ -
+
{#if isDesktopOrLarger} - {#if loading} -
- -
-
- - - -
- {:else} - nft -
-
{token?.name ? truncateString(token?.name, 15) : ''}
-
- {token?.metadata?.name ? truncateString(token?.metadata?.name, 15) : ''} +
+ {#if loading} +
+
-
{token?.tokenId}
-
- {/if} - +
+ + + +
+ {:else} + nft +
+
{token?.name ? truncateString(token?.name, 15) : 'No Token Name'}
+
+ {token?.metadata?.name ? truncateString(token?.metadata?.name, 15) : ''} +
+
{token?.tokenId}
+
+ {/if} +
diff --git a/packages/protocol/contracts/common/EssentialContract.sol b/packages/protocol/contracts/common/EssentialContract.sol index f522369da51..beacb412704 100644 --- a/packages/protocol/contracts/common/EssentialContract.sol +++ b/packages/protocol/contracts/common/EssentialContract.sol @@ -36,7 +36,6 @@ abstract contract EssentialContract is OwnerUUPSUpgradable, AddressResolver { } /// @notice Initializes the contract without an address manager. - // solhint-disable-next-line func-name-mixedcase function __Essential_init() internal virtual { __Essential_init(address(0)); } diff --git a/packages/protocol/contracts/tokenvault/ERC721Vault.sol b/packages/protocol/contracts/tokenvault/ERC721Vault.sol index eb0981a9d70..a8e1ec140d3 100644 --- a/packages/protocol/contracts/tokenvault/ERC721Vault.sol +++ b/packages/protocol/contracts/tokenvault/ERC721Vault.sol @@ -107,6 +107,7 @@ contract ERC721Vault is BaseNFTVault, IERC721ReceiverUpgradeable { }); } + /// @inheritdoc IRecallableSender function onMessageRecalled( IBridge.Message calldata message, bytes32 msgHash