kopia lustrzana https://github.com/bugout-dev/moonstream
fixed smart contract demonstration. If input is 0x it wil not be showed
rodzic
6afd9d4542
commit
b41065e667
|
@ -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 (
|
||||
|
|
|
@ -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}
|
||||
|
|
Ładowanie…
Reference in New Issue