Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,12 @@ export const ContractTableItem = ({
return (
<tr key={uuidv4()}>
<td>
<Button color="blue-link" onClick={handleContractInfo} name={address} />
<Button id={`button-adres-${id}`} color="blue-link" onClick={handleContractInfo} name={address} />
</td>
<td>{name}</td>
<td>
<Button
id={`button-transaction-${id}`}
color="blue-link"
onClick={handleTransactionInfo}
name={transaction}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ const ExplorerContracts = (props) => {
</TabContaier>
<TabContaier id="form-tab-read-smart-contracts-explorer" sectionName={"Read contract"}>
<PanelMethod
id="read"
title={"Read Information"}
items={specificationsList.readList || []}
type={"view"}
Expand All @@ -96,6 +97,7 @@ const ExplorerContracts = (props) => {
</TabContaier>
<TabContaier id="form-tab-write-smart-contracts-explorer" sectionName={"Write contract"}>
<PanelMethod
id="write"
title={"Write Information"}
items={specificationsList.writeList || []}
type={"write"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Button from "../../../../components/button";
import ExplorerForm from "../form";
import { setBodyModalParamsAction } from "../../../../../modules/modals";

const PanelMethod = ({ items, address, type, title, token }) => {
const PanelMethod = ({ items, address, type, title, token, id }) => {
const dispatch = useDispatch();
const { transactions } = useSelector((state) => state.smartContract);
const [expanded, setExpanded] = useState(false);
Expand Down Expand Up @@ -40,15 +40,15 @@ const PanelMethod = ({ items, address, type, title, token }) => {
{items.length > 0 ? (
items.map((item, index) => (
<Collapsible
id={`${item.name}-${index}-explorer-smart-contracts`}
id={`${item.name}-${index}-${id}-smart-contracts`}
title={item.name}
expand={expanded}
key={item.id}
className={"mb-3"}
>
{type === "write" || (type === "view" && item.inputs.length > 0) ? (
<ExplorerForm
id={`${item.name}-${index}-explorer-smart-contracts`}
id={`${item.name}-${index}-${id}-explorer-smart-contracts`}
methodName={item.name}
type={type}
address={address}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const SmartContracts = () => {
<SiteHeader pageTitle={"Smart Contracts"} />
<div className="page-body container-fluid">
<CustomTable
id={"my-smart-contracts"}
header={[
{
name: "Address",
Expand Down