Skip to content

Commit

Permalink
Merge pull request #221 from Consensys/fix/wrap-unwrap-names
Browse files Browse the repository at this point in the history
fix: unwrapping and wrapping names to use correct functions
  • Loading branch information
Julink-eth authored Jul 31, 2024
2 parents 3cdd462 + a562c3d commit 627d908
Show file tree
Hide file tree
Showing 10 changed files with 867 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useTheme } from 'styled-components'
import { Button, Dialog } from '@ensdomains/thorin'

import { InnerDialog } from '@app/components/@atoms/InnerDialog'
import { DialogHeading } from '@app/components/styled/Dialog'
import { intros } from '@app/transaction-flow/intro'
import { TransactionIntro } from '@app/transaction-flow/types'
import { TransactionDisplayItemSingle } from '@app/types'
Expand Down Expand Up @@ -63,7 +64,7 @@ export const IntroStageModal = ({

return (
<>
<Dialog.Heading title={t(...title)} />
<DialogHeading>{t(...title)}</DialogHeading>
<InnerDialog data-testid="transaction-modal-inner">
<Content {...content.data} />
{txCount > 1 && (
Expand Down
30 changes: 30 additions & 0 deletions packages/linea-ens-app/src/ensJsOverrides/contracts/erc1155.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
export const erc1155SafeTransferFromSnippet = [
{
inputs: [
{
name: 'from',
type: 'address',
},
{
name: 'to',
type: 'address',
},
{
name: 'id',
type: 'uint256',
},
{
name: 'amount',
type: 'uint256',
},
{
name: 'data',
type: 'bytes',
},
],
name: 'safeTransferFrom',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
] as const
69 changes: 69 additions & 0 deletions packages/linea-ens-app/src/ensJsOverrides/contracts/erc721.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
export const erc721OwnerOfSnippet = [
{
inputs: [
{
name: 'id',
type: 'uint256',
},
],
name: 'ownerOf',
outputs: [
{
name: 'owner',
type: 'address',
},
],
stateMutability: 'view',
type: 'function',
},
] as const

export const erc721SafeTransferFromSnippet = [
{
inputs: [
{
name: 'from',
type: 'address',
},
{
name: 'to',
type: 'address',
},
{
name: 'tokenId',
type: 'uint256',
},
],
name: 'safeTransferFrom',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
] as const

export const erc721SafeTransferFromWithDataSnippet = [
{
inputs: [
{
name: 'from',
type: 'address',
},
{
name: 'to',
type: 'address',
},
{
name: 'tokenId',
type: 'uint256',
},
{
name: '_data',
type: 'bytes',
},
],
name: 'safeTransferFrom',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
] as const
Loading

0 comments on commit 627d908

Please sign in to comment.