From abb0c2bff9825af69d99905340719b082966daad Mon Sep 17 00:00:00 2001 From: Antonio Date: Fri, 26 Jul 2024 11:51:30 +0100 Subject: [PATCH] fix: contract path placeholder (#270) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # What ❔ Removes initial "/" from "Contract Path" placeholder. ## Why ❔ Contract verification fails if path "/contracts/Greeter.sol" is provided instead of "contracts/Greeter.sol" ## Checklist - [ ] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [ ] Tests for the changes have been added / updated. - [ ] Documentation comments have been added / updated. --- packages/app/src/locales/en.json | 6 +++--- packages/app/src/locales/uk.json | 13 +++++++++++-- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/packages/app/src/locales/en.json b/packages/app/src/locales/en.json index 2e92691d33..b190b9f116 100644 --- a/packages/app/src/locales/en.json +++ b/packages/app/src/locales/en.json @@ -437,8 +437,8 @@ "contractPath": { "label": "Contract Path", "underline": "Relative path to your contract at the moment of compilation", - "solcPlaceholder": "/contracts/ContractFile.sol", - "vyperPlaceholder": "/contracts/ContractFile.vy", + "solcPlaceholder": "contracts/ContractFile.sol", + "vyperPlaceholder": "contracts/ContractFile.vy", "validation": { "required": "Contract path is required" } @@ -726,4 +726,4 @@ "indexerDelayed": "Transaction indexing is {indexerDelayInHours} hours behind. Transactions are being processed normally and will gradually show up. You can also use other explorers meanwhile.", "indexerDelayedDueToHeavyLoad": "The network is under a heavy load at the moment and transaction indexing on the explorer is {indexerDelayInHours} hours behind. Transactions are being processed normally and will gradually show up. You can also use other explorers meanwhile." } -} \ No newline at end of file +} diff --git a/packages/app/src/locales/uk.json b/packages/app/src/locales/uk.json index ab2f0a8ad6..4fe8914b2f 100644 --- a/packages/app/src/locales/uk.json +++ b/packages/app/src/locales/uk.json @@ -239,6 +239,15 @@ "required": "Імʼя контракту є обовʼязковим" } }, + "contractPath": { + "label": "Шлях до контракту", + "underline": "Відносний шлях до вашого контракту на момент компіляції", + "solcPlaceholder": "contracts/ContractFile.sol", + "vyperPlaceholder": "contracts/ContractFile.vy", + "validation": { + "required": "Шлях до контракту є обов'язковим" + } + }, "optimizationUsed": { "label": "Оптимізація", "options": { @@ -364,7 +373,7 @@ "second": "сек.", "secondPlural": "сек." }, - "addressView" : { + "addressView": { "title": "Адреса" }, "accountView": { @@ -421,7 +430,7 @@ "orDropHere": "або перенесіть сюди", "unableToParseTrace": "На жаль, не вдалося проаналізувати цей файл трасування", "transaction": "Транзакція: з файлу трасування", - "executionStepNavigation":"Стрілка Вліво/Вправо", + "executionStepNavigation": "Стрілка Вліво/Вправо", "searchPlaceholder": "Пошук", "metadataBlock": { "contract": "Контракт",