import React from 'react'; import {Cristal} from "react-cristal"; import {BlockLinks} from "./BlockLink"; import Address from "./Address"; class Block extends React.Component { constructor(props) { super(props) this.state = {} this.loadHeader() } async loadHeader() { const header = await this.props.conn.call('Filecoin.ChainGetBlock', [this.props.cid]) const messages = await this.props.conn.call('Filecoin.ChainGetBlockMessages', [this.props.cid]) console.log(messages) this.setState({header: header, messages: messages}) } render() { let content =