fixed smart contract demonstration. If input is 0x it wil not be showed

pull/49/head
yhtiyar 2021-08-03 16:06:25 +03:00
rodzic 6afd9d4542
commit b41065e667
2 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -14,8 +14,7 @@ import moment from "moment";
import { ArrowRightIcon } from "@chakra-ui/icons";
import { useRouter } from "../core/hooks";
import UIContext from "../core/providers/UIProvider/context";
import { useToast } from "../core/hooks";
import { useToast, useTxCashe } from "../core/hooks";
const StreamEntry = ({ entry, filterCallback, filterConstants }) => {
const ui = useContext(UIContext);
@ -31,15 +30,18 @@ const StreamEntry = ({ entry, filterCallback, filterConstants }) => {
} else if (copyString) {
onCopy();
}
}, [copyString, onCopy, hasCopied, toast]);
const handleViewClicked = (entryId) => {
ui.setEntryId(entryId);
ui.setEntriesViewMode("entry");
useTxCashe.setCurrentTransaction(entry)
router.push({
pathname: `/stream/${entry.hash}`,
query: router.query,
});
};
const [showFullView] = useMediaQuery(["(min-width: 420px)"]);
return (

Wyświetl plik

@ -83,7 +83,7 @@ const TxInfo = (props) => {
))}
</Tbody>
</Table>
{transaction.abi &&
{transaction.tx.input && transaction.tx.input !== "0x" &&
<TxABI
byteCode={transaction.tx.input}
abi={transaction.abi}