Skip to content

Commit

Permalink
fix: unwrapping and wrapping names to use correct functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Julink-eth committed Jul 30, 2024
1 parent e09ff93 commit 13545a2
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 13545a2

Please sign in to comment.