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) => { ...@@ -204,7 +204,7 @@ const ContractCode = ({ addressHash, noSocket }: Props) => {
) } ) }
{ data?.compiler_settings ? ( { data?.compiler_settings ? (
<RawDataSnippet <RawDataSnippet
data={ JSON.stringify(data.compiler_settings) } data={ JSON.stringify(data.compiler_settings, undefined, 4) }
title="Compiler Settings" title="Compiler Settings"
textareaMaxHeight="200px" textareaMaxHeight="200px"
isLoading={ isPlaceholderData } isLoading={ isPlaceholderData }
...@@ -212,7 +212,7 @@ const ContractCode = ({ addressHash, noSocket }: Props) => { ...@@ -212,7 +212,7 @@ const ContractCode = ({ addressHash, noSocket }: Props) => {
) : null } ) : null }
{ data?.abi && ( { data?.abi && (
<RawDataSnippet <RawDataSnippet
data={ JSON.stringify(data.abi) } data={ JSON.stringify(data.abi, undefined, 4) }
title="Contract ABI" title="Contract ABI"
textareaMaxHeight="200px" textareaMaxHeight="200px"
isLoading={ isPlaceholderData } 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