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 { ArrowRightIcon } from "@chakra-ui/icons";
|
||||||
import { useRouter } from "../core/hooks";
|
import { useRouter } from "../core/hooks";
|
||||||
import UIContext from "../core/providers/UIProvider/context";
|
import UIContext from "../core/providers/UIProvider/context";
|
||||||
import { useToast } from "../core/hooks";
|
import { useToast, useTxCashe } from "../core/hooks";
|
||||||
|
|
||||||
|
|
||||||
const StreamEntry = ({ entry, filterCallback, filterConstants }) => {
|
const StreamEntry = ({ entry, filterCallback, filterConstants }) => {
|
||||||
const ui = useContext(UIContext);
|
const ui = useContext(UIContext);
|
||||||
|
@ -31,15 +30,18 @@ const StreamEntry = ({ entry, filterCallback, filterConstants }) => {
|
||||||
} else if (copyString) {
|
} else if (copyString) {
|
||||||
onCopy();
|
onCopy();
|
||||||
}
|
}
|
||||||
|
|
||||||
}, [copyString, onCopy, hasCopied, toast]);
|
}, [copyString, onCopy, hasCopied, toast]);
|
||||||
const handleViewClicked = (entryId) => {
|
const handleViewClicked = (entryId) => {
|
||||||
ui.setEntryId(entryId);
|
ui.setEntryId(entryId);
|
||||||
ui.setEntriesViewMode("entry");
|
ui.setEntriesViewMode("entry");
|
||||||
|
useTxCashe.setCurrentTransaction(entry)
|
||||||
router.push({
|
router.push({
|
||||||
pathname: `/stream/${entry.hash}`,
|
pathname: `/stream/${entry.hash}`,
|
||||||
query: router.query,
|
query: router.query,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const [showFullView] = useMediaQuery(["(min-width: 420px)"]);
|
const [showFullView] = useMediaQuery(["(min-width: 420px)"]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -83,7 +83,7 @@ const TxInfo = (props) => {
|
||||||
))}
|
))}
|
||||||
</Tbody>
|
</Tbody>
|
||||||
</Table>
|
</Table>
|
||||||
{transaction.abi &&
|
{transaction.tx.input && transaction.tx.input !== "0x" &&
|
||||||
<TxABI
|
<TxABI
|
||||||
byteCode={transaction.tx.input}
|
byteCode={transaction.tx.input}
|
||||||
abi={transaction.abi}
|
abi={transaction.abi}
|
||||||
|
|
Ładowanie…
Reference in New Issue