Remove alchemy file and add localhost network to possible network to choose

Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
This commit is contained in:
RcleydsonR
2023-01-12 18:06:44 -03:00
parent aedd4bc532
commit 62dd4349b2
3 changed files with 19 additions and 33 deletions

View File

@@ -52,6 +52,7 @@ const getNetworkImage = (networkName: NetworkEnum) => {
let validImages = {
Ethereum: ethereumImage,
Polygon: polygonImage,
Localhost: ethereumImage
};
return validImages[networkName];
@@ -159,7 +160,23 @@ const getNetworkImage = (networkName: NetworkEnum) => {
<span class="text-gray-900 py-4 text-end font-semibold text-sm">
Polygon
</span>
<hr />
</div>
<div class="w-full flex justify-center">
<hr class="w-4/5" />
</div>
<div
class="menu-button gap-2 px-4 rounded-md cursor-pointer"
@click="etherStore.setNetworkName(NetworkEnum.localhost)"
>
<img
alt="Localhost"
width="20"
height="20"
src="@/assets/ethereum.svg"
/>
<span class="text-gray-900 py-4 text-end font-semibold text-sm">
Localhost
</span>
</div>
</div>
</div>