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,