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
586831e3
Commit
586831e3
authored
Apr 03, 2024
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix erc404 transfer type
parent
3e0f6e67
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
tokenTransfer.ts
mocks/tokens/tokenTransfer.ts
+1
-0
tokenTransfer.ts
types/api/tokenTransfer.ts
+4
-3
TxDetailsTokenTransfer.tsx
ui/tx/details/TxDetailsTokenTransfer.tsx
+1
-1
No files found.
mocks/tokens/tokenTransfer.ts
View file @
586831e3
...
...
@@ -208,6 +208,7 @@ export const erc404A: TokenTransfer = {
total
:
{
value
:
'
42000000000000000000000000
'
,
decimals
:
'
18
'
,
token_id
:
null
,
},
tx_hash
:
'
0x05d6589367633c032d757a69c5fb16c0e33e3994b0d9d1483f82aeee1f05d746
'
,
type
:
'
token_transfer
'
,
...
...
types/api/tokenTransfer.ts
View file @
586831e3
...
...
@@ -17,10 +17,11 @@ export type Erc1155TotalPayload = {
}
export
type
Erc404TotalPayload
=
{
decimals
:
string
|
null
;
value
:
string
|
null
;
decimals
:
string
;
value
:
string
;
token_id
:
null
;
}
|
{
token_id
:
string
|
null
;
token_id
:
string
;
};
export
type
TokenTransfer
=
(
...
...
ui/tx/details/TxDetailsTokenTransfer.tsx
View file @
586831e3
...
...
@@ -53,7 +53,7 @@ const TxDetailsTokenTransfer = ({ data }: Props) => {
case
'
ERC-404
'
:
{
const
total
=
data
.
total
as
Erc404TotalPayload
;
if
(
'
token_id
'
in
tota
l
)
{
if
(
total
.
token_id
!==
nul
l
)
{
return
(
<
NftTokenTransferSnippet
token=
{
data
.
token
}
...
...
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