Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
54267a02
Unverified
Commit
54267a02
authored
Jul 24, 2025
by
tom goriunov
Committed by
GitHub
Jul 24, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Contract method output: remove the tooltip with the value divided by 10**18 (#2886)
Fixes #2873
parent
85d4b287
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
ItemPrimitive.tsx
...ontract/methods/form/resultPublicClient/ItemPrimitive.tsx
+0
-16
No files found.
ui/address/contract/methods/form/resultPublicClient/ItemPrimitive.tsx
View file @
54267a02
import
BigNumber
from
'
bignumber.js
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
{
AbiParameter
}
from
'
viem
'
;
import
type
{
AbiParameter
}
from
'
viem
'
;
import
{
route
}
from
'
nextjs-routes
'
;
import
{
route
}
from
'
nextjs-routes
'
;
import
{
Link
}
from
'
toolkit/chakra/link
'
;
import
{
Link
}
from
'
toolkit/chakra/link
'
;
import
{
Tooltip
}
from
'
toolkit/chakra/tooltip
'
;
import
{
WEI
}
from
'
toolkit/utils/consts
'
;
import
CopyToClipboard
from
'
ui/shared/CopyToClipboard
'
;
import
CopyToClipboard
from
'
ui/shared/CopyToClipboard
'
;
import
{
matchInt
}
from
'
../utils
'
;
import
ItemLabel
from
'
./ItemLabel
'
;
import
ItemLabel
from
'
./ItemLabel
'
;
import
{
printRowOffset
}
from
'
./utils
'
;
import
{
printRowOffset
}
from
'
./utils
'
;
...
@@ -29,8 +25,6 @@ function castValueToString(value: unknown): string {
...
@@ -29,8 +25,6 @@ function castValueToString(value: unknown): string {
}
}
}
}
const
INT_TOOLTIP_THRESHOLD
=
10
**
9
;
interface
Props
{
interface
Props
{
abiParameter
:
AbiParameter
;
abiParameter
:
AbiParameter
;
data
:
unknown
;
data
:
unknown
;
...
@@ -50,16 +44,6 @@ const ItemPrimitive = ({ abiParameter, data, level, hideLabel }: Props) => {
...
@@ -50,16 +44,6 @@ const ItemPrimitive = ({ abiParameter, data, level, hideLabel }: Props) => {
);
);
}
}
const
intMatch
=
matchInt
(
abiParameter
.
type
);
if
(
intMatch
&&
typeof
data
===
'
bigint
'
&&
intMatch
.
max
>
INT_TOOLTIP_THRESHOLD
&&
data
>
INT_TOOLTIP_THRESHOLD
)
{
const
dividedValue
=
BigNumber
(
data
.
toString
()).
div
(
WEI
);
return
(
<
Tooltip
content=
{
dividedValue
.
toLocaleString
()
+
'
ETH
'
}
>
<
span
>
{
castValueToString
(
data
)
}
</
span
>
</
Tooltip
>
);
}
return
<
span
>
{
castValueToString
(
data
)
}
</
span
>;
return
<
span
>
{
castValueToString
(
data
)
}
</
span
>;
})();
})();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment