Skip to content

Commit

Permalink
Updates to version v0.60.0-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
tjayrush committed Mar 12, 2023
1 parent df510ab commit 6c1a336
Show file tree
Hide file tree
Showing 4 changed files with 805 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"react-syntax-highlighter": "^15.4.3",
"react-test-renderer": "^17.0.2",
"recharts": "^2.0.9",
"trueblocks-sdk": "^0.55.4",
"trueblocks-sdk": "^0.60.1",
"ts-morph": "^13.0.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { TransactionModel } from '@modules/types/models/Transaction';
export const RenderedAddress = ({ record, which }: {record: TransactionModel, which: string}) => {
let address = which === 'from' ? record.from : record.to;
const isCreation = address === '0x0';
if (isCreation) address = record.receipt.contractAddress; // may be empty
if (isCreation && record.receipt.contractAddress !== undefined) {
address = record.receipt.contractAddress; // may be empty
}
const isSpecial = address === '0xPrefund' || address === '0xBlockReward' || address === '0xUncleReward';

const acctFor = record.extraData;
Expand Down
4 changes: 2 additions & 2 deletions src/ui/views/Explorer/Tabs/Blocks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ const blockListSchema: ColumnsType<BlockModel> = [
render: (value, record) => (
<div>
<div>{value}</div>
<div style={{ fontStyle: 'italic' }}>
{/* <div style={{ fontStyle: 'italic' }}>
{record.unclesCnt === null || record.unclesCnt === 0 ? '' : `${record.unclesCnt} uncle`}
</div>
</div> */}
</div>
),
width: 400,
Expand Down
Loading

0 comments on commit 6c1a336

Please sign in to comment.