Merge pull request #186 from victaphu/master

update: fixed issue #185 - proxy viewer failed
pull/189/head
Artem 3 years ago committed by GitHub
commit 901976ecc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/pages/AddressPage/ContractDetails/index.tsx

@ -396,7 +396,7 @@ export const VerifiedContractDetails = (props: {
<Box style={{ padding: "10px" }}> <Box style={{ padding: "10px" }}>
<ProxyContractDetails address={props.sourceCode.proxyAddress || ""} proxy={props.sourceCode.proxyDetails}></ProxyContractDetails> <ProxyContractDetails address={props.sourceCode.proxyAddress || ""} proxy={props.sourceCode.proxyDetails}></ProxyContractDetails>
<AbiMethods <AbiMethods
abi={props.sourceCode.proxy.abi.filter( abi={props.sourceCode.proxy.result.abi.filter(
(a: { stateMutability: string; type: string; }) => a.stateMutability === "view" && a.type === "function" (a: { stateMutability: string; type: string; }) => a.stateMutability === "view" && a.type === "function"
)} )}
address={props.address || ""} address={props.address || ""}
@ -410,7 +410,7 @@ export const VerifiedContractDetails = (props: {
<Wallet onSetMetamask={setMetamask} onSetChainId={setChainId} /> <Wallet onSetMetamask={setMetamask} onSetChainId={setChainId} />
<ProxyContractDetails address={props.sourceCode.proxyAddress || ""} proxy={props.sourceCode.proxyDetails}></ProxyContractDetails> <ProxyContractDetails address={props.sourceCode.proxyAddress || ""} proxy={props.sourceCode.proxyDetails}></ProxyContractDetails>
<AbiMethods <AbiMethods
abi={props.sourceCode.proxy.abi.filter( abi={props.sourceCode.proxy.result.abi.filter(
(a: { stateMutability: string; name: any; type: string; }) => (a: { stateMutability: string; name: any; type: string; }) =>
a.stateMutability !== "view" && a.stateMutability !== "view" &&
!!a.name && !!a.name &&

Loading…
Cancel
Save