Commit 360a305a authored by tom's avatar tom

beautify json on contract code tab

parent f8eeafb7
......@@ -204,7 +204,7 @@ const ContractCode = ({ addressHash, noSocket }: Props) => {
) }
{ data?.compiler_settings ? (
<RawDataSnippet
data={ JSON.stringify(data.compiler_settings) }
data={ JSON.stringify(data.compiler_settings, undefined, 4) }
title="Compiler Settings"
textareaMaxHeight="200px"
isLoading={ isPlaceholderData }
......@@ -212,7 +212,7 @@ const ContractCode = ({ addressHash, noSocket }: Props) => {
) : null }
{ data?.abi && (
<RawDataSnippet
data={ JSON.stringify(data.abi) }
data={ JSON.stringify(data.abi, undefined, 4) }
title="Contract ABI"
textareaMaxHeight="200px"
isLoading={ isPlaceholderData }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment