diff --git a/components/AccountOverview/index.tsx b/components/AccountOverview/index.tsx index 5d8bb5e7..4beb44e8 100644 --- a/components/AccountOverview/index.tsx +++ b/components/AccountOverview/index.tsx @@ -42,6 +42,7 @@ export interface PolyjuiceContract extends AccountBase { | 'compiler_version' | 'compiler_file_format' | 'contract_source_code' + | 'sourcify_metadata' | 'abi' | 'constructor_arguments' > | null @@ -110,6 +111,7 @@ const accountOverviewQuery = gql` compiler_version compiler_file_format contract_source_code + sourcify_metadata constructor_arguments abi } @@ -146,6 +148,7 @@ const accountOverviewQueryUnion = gql` compiler_version compiler_file_format contract_source_code + sourcify_metadata constructor_arguments abi } diff --git a/components/ContractInfo/index.tsx b/components/ContractInfo/index.tsx index c10bbee4..b4f1bdd1 100644 --- a/components/ContractInfo/index.tsx +++ b/components/ContractInfo/index.tsx @@ -23,7 +23,15 @@ import Alert from 'components/Alert' const ContractInfo: React.FC<{ address: string; contract: PolyjuiceContractProps['smart_contract'] }> = ({ address, - contract: { abi, compiler_file_format, compiler_version, name, contract_source_code, constructor_arguments }, + contract: { + abi, + compiler_file_format, + compiler_version, + name, + contract_source_code, + sourcify_metadata, + constructor_arguments, + }, }) => { const [t] = useTranslation(['account', 'tokens', 'list']) const [tabIdx, setTabIdx] = useState(0) @@ -206,13 +214,29 @@ const ContractInfo: React.FC<{ address: string; contract: PolyjuiceContractProps ))} {contract_source_code ? ( -
-
-
{t(`contract_source_code`)}
- {vm ?
{`(${vm})`}
: null} -
-