mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* added rel="noopener noreferrer" to link elements using external and noIcon prop * fix: resolve asChild and external prop conflicts in Link components * Revert "fix: resolve asChild and external prop conflicts in Link components" This reverts commit e99580049946b487ce4dc77e7cdab2cd17e5c820. * fix: remove asChild prop conflicts with external links
33 lines
1.2 KiB
TypeScript
33 lines
1.2 KiB
TypeScript
import React from 'react';
|
|
|
|
import type { FormFields } from '../types';
|
|
|
|
import { Link } from 'toolkit/chakra/link';
|
|
import { FormFieldText } from 'toolkit/components/forms/fields/FormFieldText';
|
|
|
|
import ContractVerificationFormRow from '../ContractVerificationFormRow';
|
|
|
|
const ContractVerificationFieldConstructorArgs = () => {
|
|
return (
|
|
<ContractVerificationFormRow>
|
|
<FormFieldText<FormFields>
|
|
name="constructor_args"
|
|
required
|
|
rules={{ maxLength: 255 }}
|
|
placeholder="ABI-encoded Constructor Arguments"
|
|
asComponent="Textarea"
|
|
/>
|
|
<>
|
|
<span>Add arguments in </span>
|
|
<Link href="https://solidity.readthedocs.io/en/develop/abi-spec.html" external noIcon>ABI hex encoded form</Link>
|
|
<span> if required by the contract. Constructor arguments are written right to left, and will be found at the end of the input created bytecode.</span>
|
|
<span> They may also be </span>
|
|
<Link href="https://abi.hashex.org/" external noIcon>parsed here</Link>
|
|
<span>.</span>
|
|
</>
|
|
</ContractVerificationFormRow>
|
|
);
|
|
};
|
|
|
|
export default React.memo(ContractVerificationFieldConstructorArgs);
|