From 7b0137c7fe151abe8dcff6b72ef3f9d4390c01b8 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Tue, 7 Sep 2021 00:44:28 -0300 Subject: [PATCH] Add replacement rule --- src/useSourcify.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/useSourcify.ts b/src/useSourcify.ts index 40c0bea..ac0cbde 100644 --- a/src/useSourcify.ts +++ b/src/useSourcify.ts @@ -88,7 +88,7 @@ export const useContract = ( } const readContent = async () => { - const normalizedFilename = filename.replaceAll("@", "_"); + const normalizedFilename = filename.replaceAll(/[@:]/g, "_"); const url = sourcifySourceFile( checksummedAddress, networkId,