Contract verify feature upgrade

pull/43/head
yuriy 3 years ago
parent ea1a06b210
commit a7d443dcee
No known key found for this signature in database
GPG Key ID: 6D8D9AD3D80B0F2C
  1. 10
      src/pages/AddressPage/ContractDetails/index.tsx
  2. 15
      src/pages/VerifyContract/VerifyContract.tsx

@ -201,6 +201,16 @@ export const VerifiedContractDetails = (props: {
</StyledTextArea>
}
/>
{props.sourceCode.constructorArguments ? (
<Item
label="Constructor Arguments (ABI-encoded)"
value={
<StyledTextArea readOnly={true} rows={4} cols={100}>
{props.sourceCode.constructorArguments || ""}
</StyledTextArea>
}
/>
) : null}
{props.contracts ? (
<Item
label="Bytecode"

@ -199,6 +199,21 @@ class VerifyContractBase extends React.Component<
/>
</Field>
<Field margin={"small"}>
<Text>Constructor Arguments (ABI-encoded)</Text>
<TextArea
style={{ minHeight: "80px", height: "80px" }}
onChange={(evt: React.ChangeEvent<HTMLTextAreaElement>) => {
this.setState({
...this.state,
constructorArguments: evt.currentTarget.value,
});
}}
disabled={isLoading}
value={this.state.constructorArguments}
/>
</Field>
<Field margin={"small"}>
<Text>Contract Library Address</Text>
<Button

Loading…
Cancel
Save