diff --git a/src/components/ConfirmationDialog.vue b/src/components/ConfirmationDialog.vue
index ac1abb0c..5e0908a4 100644
--- a/src/components/ConfirmationDialog.vue
+++ b/src/components/ConfirmationDialog.vue
@@ -52,7 +52,7 @@ export default {
},
methods: {
navigate(){
- window.open('https://sourcify.dev', '_blank');
+ window.open('https://sourcify.dev/#/verifier', '_blank');
},
},
};
diff --git a/src/components/ContractTab/ContractInterface.vue b/src/components/ContractTab/ContractInterface.vue
index fb6b5111..b1db0294 100644
--- a/src/components/ContractTab/ContractInterface.vue
+++ b/src/components/ContractTab/ContractInterface.vue
@@ -1,5 +1,5 @@
{{ $t('components.contract_tab.verified_contract_source') }}
-
+
{{ $t('components.contract_tab.here') }}
{{ $t('components.contract_tab.verified_contract_source') }} - + {{ $t('components.contract_tab.here') }} diff --git a/src/i18n/de-de/index.js b/src/i18n/de-de/index.js index 91e205bd..6db60e78 100644 --- a/src/i18n/de-de/index.js +++ b/src/i18n/de-de/index.js @@ -445,6 +445,13 @@ export default { bytecode: 'Bytecode', read: 'Lesen', write: 'Schreiben', + read_proxy: 'Lese-Proxy', + write_proxy: 'Schreib-Proxy', + proxy_contract: 'Dies ist ein {type} Proxy-Vertrag, die Implementierung ist: ', + proxy_contract_tooltip: 'Dieser Vertrag fungiert als Proxy für einen anderen Vertrag in der Implementierung und ermöglicht es, das Implementierungsverhalten zu aktualisieren', + no_functions_read: 'Keine Lese-Funktionen gefunden', + no_functions_write: 'Keine Schreib-Funktionen gefunden', + detecting_proxy: 'Proxy-Vertrag wird erkannt...', amount: 'Anzahl', value: 'Wert', custom_decimals: 'Benutzerdefinierte Dezimalen', diff --git a/src/i18n/en-us/index.js b/src/i18n/en-us/index.js index 892d6798..7144241f 100644 --- a/src/i18n/en-us/index.js +++ b/src/i18n/en-us/index.js @@ -448,6 +448,13 @@ export default { bytecode: 'Bytecode', read: 'Read', write: 'Write', + read_proxy: 'Read proxy', + write_proxy: 'Write proxy', + proxy_contract: 'This is a {type} proxy contract, implementation is: ', + proxy_contract_tooltip: 'This contract proxies to another contract for the implementation, allowing the implementation behavior to be upgraded', + no_functions_read: 'No read functions found', + no_functions_write: 'No write functions found', + detecting_proxy: 'Detecting proxy contract...', amount: 'Amount', value: 'Value', custom_decimals: 'Custom decimals', diff --git a/src/i18n/es-es/index.js b/src/i18n/es-es/index.js index 5e118578..b0c0bc22 100644 --- a/src/i18n/es-es/index.js +++ b/src/i18n/es-es/index.js @@ -445,6 +445,13 @@ export default { bytecode: 'Código de bytes', read: 'Leer', write: 'Escribir', + read_proxy: 'Leer Proxy', + write_proxy: 'Escribir Proxy', + proxy_contract: 'Este es un contrato proxy de tipo {type}, la implementación es: ', + proxy_contract_tooltip: 'Este contrato actúa como proxy para otro contrato en la implementación, permitiendo que el comportamiento de la implementación sea actualizado', + no_functions_read: 'No se encontraron funciones de lectura', + no_functions_write: 'No se encontraron funciones de escritura', + detecting_proxy: 'Detectando contrato proxy...', amount: 'Cantidad', value: 'Valor', custom_decimals: 'Decimales personalizados', diff --git a/src/i18n/fr-fr/index.js b/src/i18n/fr-fr/index.js index bfcc76fb..437b723a 100644 --- a/src/i18n/fr-fr/index.js +++ b/src/i18n/fr-fr/index.js @@ -445,6 +445,13 @@ export default { bytecode: 'Bytecode', read: 'Lire', write: 'Ecrire', + read_proxy: 'Proxy de lecture', + write_proxy: 'Proxy d\'écriture', + proxy_contract: 'Ceci est un contrat proxy de type {type}, l\'implémentation est : ', + proxy_contract_tooltip: 'Ce contrat agit comme un proxy pour un autre contrat dans l\'implémentation, permettant de mettre à niveau le comportement de l\'implémentation', + no_functions_read: 'Aucune fonction de lecture trouvée', + no_functions_write: 'Aucune fonction d\'écriture trouvée', + detecting_proxy: 'Détection du contrat proxy...', amount: 'Montant', value: 'Valeur', custom_decimals: 'Decimales personalisés', diff --git a/src/i18n/pt-br/index.js b/src/i18n/pt-br/index.js index fea18814..8271671f 100644 --- a/src/i18n/pt-br/index.js +++ b/src/i18n/pt-br/index.js @@ -445,6 +445,13 @@ export default { bytecode: 'Código de bytes', read: 'Ler', write: 'Escrever', + read_proxy: 'Leitura Proxy', + write_proxy: 'Escrita Proxy', + proxy_contract: 'Este é um contrato proxy do tipo {type}, a implementação é: ', + proxy_contract_tooltip: 'Este contrato atua como um proxy para outro contrato na implementação, permitindo que o comportamento da implementação seja atualizado', + no_functions_read: 'Nenhuma função de leitura encontrada', + no_functions_write: 'Nenhuma função de escrita encontrada', + detecting_proxy: 'Detectando contrato proxy...', amount: 'Montante', value: 'Valor', custom_decimals: 'Decimais personalizados', diff --git a/src/lib/utils.js b/src/lib/utils.js index 7f8121c7..2a9639b1 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -66,6 +66,11 @@ export function toChecksumAddress(address) { return address; } + if (typeof address !== 'string') { + console.error(`utils.toChecksumAddress() address must be a string but got ${typeof address}`, { address }); + throw new Error('toChecksumAddress: must pass a string'); + } + let addy = address.toLowerCase().replace('0x', ''); if (addy.length !== 40) { addy = addy.padStart(40, '0');