update: added support for devnet; and added processing of multi-file uploads in UI

pull/207/head
Victa Kwok Wai Phu 2 years ago
parent b004b6f551
commit ed79c4be06
  1. 16
      src/pages/AddressPage/ContractDetails/index.tsx
  2. 2
      src/pages/VerifyContract/VerifyContract.tsx

@ -328,10 +328,24 @@ export const VerifiedContractDetails = (props: {
Object.keys(props.sourceCode.supporting?.sources).map((source: string, i: number) => {
return <Item
key={i}
label={`Verified ${source}`}
label={`Verified ${source.substring(source.lastIndexOf('/') + 1)}`}
value={
<StyledTextArea readOnly={true} rows={15} cols={100} value={props.sourceCode.supporting.sources[source].source || ""}>
</StyledTextArea>
}
/>
})}
{props.sourceCode.supporting
&& !props.sourceCode.supporting?.sources
&&
Object.keys(props.sourceCode.supporting).map((source: string, i: number) => {
return <Item
key={i}
label={`Verified ${source.substring(source.lastIndexOf('/') + 1)}`}
value={
<StyledTextArea readOnly={true} rows={15} cols={100} value={props.sourceCode.supporting[source].source || ""}>
</StyledTextArea>
}
/>

@ -221,7 +221,7 @@ class VerifyContractBase extends React.Component<
<Field margin={"small"} width={isLessTablet ? "100%" : "30%"}>
<Text>Chain Type</Text>
<Select
options={["mainnet", "testnet"]}
options={["mainnet", "testnet", "devnet"]}
value={this.state.chainType}
onChange={({ option }) =>
this.setState({ ...this.state, chainType: option })

Loading…
Cancel
Save