Commit 4afa0f12 authored by tom goriunov's avatar tom goriunov Committed by GitHub

Missing checksum on address page and read contract page (#1600)

Fixes #1570
parent df352856
...@@ -2,6 +2,7 @@ import { Checkbox, Flex, chakra } from '@chakra-ui/react'; ...@@ -2,6 +2,7 @@ import { Checkbox, Flex, chakra } from '@chakra-ui/react';
import BigNumber from 'bignumber.js'; import BigNumber from 'bignumber.js';
import type { ChangeEvent } from 'react'; import type { ChangeEvent } from 'react';
import React from 'react'; import React from 'react';
import { getAddress } from 'viem';
import type { SmartContractMethodOutput } from 'types/api/contract'; import type { SmartContractMethodOutput } from 'types/api/contract';
...@@ -50,7 +51,7 @@ const ContractMethodStatic = ({ data }: Props) => { ...@@ -50,7 +51,7 @@ const ContractMethodStatic = ({ data }: Props) => {
if (typeof data.value === 'string' && data.type === 'address' && data.value) { if (typeof data.value === 'string' && data.type === 'address' && data.value) {
return ( return (
<AddressEntity <AddressEntity
address={{ hash: data.value }} address={{ hash: getAddress(data.value) }}
noIcon noIcon
/> />
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment