diff --git a/frontend/src/app/(routes)/cosmwasm/[network]/PageContracts.tsx b/frontend/src/app/(routes)/cosmwasm/[network]/PageContracts.tsx index 2e700d761..09d903317 100644 --- a/frontend/src/app/(routes)/cosmwasm/[network]/PageContracts.tsx +++ b/frontend/src/app/(routes)/cosmwasm/[network]/PageContracts.tsx @@ -19,6 +19,7 @@ const PageContracts = ({ chainName }: { chainName: string }) => { const [selectedTab, setSelectedTab] = useState('Contracts'); const paramContractAddress = useSearchParams().get('contract'); + const paramsCodeId = useSearchParams().get('code_id'); useEffect(() => { if (paramContractAddress?.length) { @@ -26,6 +27,12 @@ const PageContracts = ({ chainName }: { chainName: string }) => { } }, [paramContractAddress]); + useEffect(() => { + if (paramsCodeId?.length) { + setSelectedTab('All Contracts'); + } + }, [paramsCodeId]); + return (
diff --git a/frontend/src/app/(routes)/cosmwasm/components/AddAddresses.tsx b/frontend/src/app/(routes)/cosmwasm/components/AddAddresses.tsx index a0fa9bd89..9580efb85 100644 --- a/frontend/src/app/(routes)/cosmwasm/components/AddAddresses.tsx +++ b/frontend/src/app/(routes)/cosmwasm/components/AddAddresses.tsx @@ -25,7 +25,7 @@ const AddAddresses = (props: AddAddressesI) => { const input = e.target.value; const newAddresses = addresses.map((value, key) => { if (index === key) { - input.trim(); + return input.trim(); } return value; });