diff --git a/apps/remix-ide/src/app/tabs/locales/en/debugger.json b/apps/remix-ide/src/app/tabs/locales/en/debugger.json index d6516ef888..2a7d40f1da 100644 --- a/apps/remix-ide/src/app/tabs/locales/en/debugger.json +++ b/apps/remix-ide/src/app/tabs/locales/en/debugger.json @@ -4,5 +4,8 @@ "debugger.stopDebugging": "Stop debugging", "debugger.startDebugging": "Start debugging", "debugger.placeholder": "Transaction hash, should start with 0x", + "debugger.debugLocaNodeLabel": "Force using local node", + "debugger.useGeneratedSources": "Use generated sources", + "debugger.debugWithGeneratedSources": "Debug with generated sources", "debugger.introduction": "When Debugging with a transaction hash, if the contract is verified, Remix will try to fetch the source code from Sourcify or Etherscan. Put in your Etherscan API key in the Remix settings. For supported networks, please see" } diff --git a/apps/remix-ide/src/app/tabs/locales/zh/debugger.json b/apps/remix-ide/src/app/tabs/locales/zh/debugger.json index e6da2eb970..4eb729b4cc 100644 --- a/apps/remix-ide/src/app/tabs/locales/zh/debugger.json +++ b/apps/remix-ide/src/app/tabs/locales/zh/debugger.json @@ -4,5 +4,8 @@ "debugger.stopDebugging": "停止调试", "debugger.startDebugging": "开始调试", "debugger.placeholder": "交易哈希, 应该以 0x 开头", + "debugger.debugLocaNodeLabel": "强制使用本地节点", + "debugger.useGeneratedSources": "使用生成的源", + "debugger.debugWithGeneratedSources": "使用生成的源进行调试", "debugger.introduction": "当使用交易哈希调试时, 如果该合约已被验证, Remix 会试图从 Sourcify 或 Etherscan 获取源码. 在 Remix 中设置您的 Etherscan API key. 有关受支持的网络,请参阅" } diff --git a/libs/remix-ui/debugger-ui/src/lib/debugger-ui.tsx b/libs/remix-ui/debugger-ui/src/lib/debugger-ui.tsx index 34a8affad8..910ec433e3 100644 --- a/libs/remix-ui/debugger-ui/src/lib/debugger-ui.tsx +++ b/libs/remix-ui/debugger-ui/src/lib/debugger-ui.tsx @@ -41,8 +41,8 @@ export const DebuggerUI = (props: DebuggerUIProps) => { props.onReady({ globalContext: () => { return { - block: state.currentBlock, - tx: state.currentTransaction, + block: state.currentBlock, + tx: state.currentTransaction, receipt: state.currentReceipt } } @@ -375,7 +375,7 @@ export const DebuggerUI = (props: DebuggerUIProps) => { return { ...prevState, opt: { ...prevState.opt, debugWithGeneratedSources: checked } } }) }} type="checkbox" /> - + ) return ( @@ -386,7 +386,7 @@ export const DebuggerUI = (props: DebuggerUIProps) => {