Use complete input decoder

This commit is contained in:
Willian Mitsuda 2021-11-08 08:28:28 -03:00
parent a03b7d21f6
commit d9155bff11
1 changed files with 7 additions and 4 deletions

View File

@ -3,7 +3,7 @@ import { Switch } from "@headlessui/react";
import TransactionAddress from "../components/TransactionAddress"; import TransactionAddress from "../components/TransactionAddress";
import FormattedBalance from "../components/FormattedBalance"; import FormattedBalance from "../components/FormattedBalance";
import FunctionSignature from "./FunctionSignature"; import FunctionSignature from "./FunctionSignature";
import DecodedParamsTable from "./decoder/DecodedParamsTable"; import InputDecoder from "./decoder/InputDecoder";
import { TraceEntry } from "../useErigonHooks"; import { TraceEntry } from "../useErigonHooks";
import { ResolvedAddresses } from "../api/address-resolver"; import { ResolvedAddresses } from "../api/address-resolver";
import { import {
@ -75,10 +75,13 @@ const TraceInput: React.FC<TraceInputProps> = ({
{hasParams && expanded && fourBytesTxDesc && ( {hasParams && expanded && fourBytesTxDesc && (
<> <>
<div className="ml-5 mr-1 my-2"> <div className="ml-5 mr-1 my-2">
<DecodedParamsTable <InputDecoder
args={fourBytesTxDesc.args} fourBytes={raw4Bytes ?? "0x"}
paramTypes={fourBytesTxDesc.functionFragment.inputs} resolvedTxDesc={fourBytesTxDesc}
hasParamNames={false} hasParamNames={false}
data={t.input}
userMethod={undefined}
devMethod={undefined}
resolvedAddresses={resolvedAddresses} resolvedAddresses={resolvedAddresses}
/> />
</div> </div>