Skip to content

Commit

Permalink
chore: renaming for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
negar-abbasi committed Sep 11, 2024
1 parent eea7b3c commit 4ba01fc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ import { ApplicationLink } from '@/features/applications/components/application-
import { AssetIdLink } from '@/features/assets/components/asset-link'
import { useMemo, useCallback } from 'react'

export function DecodedAbiMethodArguments({
arguments: argumentsProp,
multiLine,
}: {
type Props = {
arguments: AbiMethodArgumentRepresentation[]
multiLine: boolean
}) {
}
export function DecodedAbiMethodArguments({ arguments: argumentsProp, multiLine }: Props) {
const renderArgumentValue = useCallback((argument: AbiMethodArgumentRepresentation) => {
if (argument.type === AbiType.Transaction) {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { AbiMethodReturnRepresentation } from '@/features/abi-methods/models'
import { AbiValue } from '@/features/abi-methods/components/abi-value'

type Props = {
returnRepresentation: AbiMethodReturnRepresentation
return: AbiMethodReturnRepresentation
}

export function DecodedAbiMethodReturnValue({ returnRepresentation }: Props) {
if (returnRepresentation === 'void') return 'void'
return <AbiValue abiValue={returnRepresentation} />
export function DecodedAbiMethodReturnValue({ return: returnProp }: Props) {
if (returnProp === 'void') return 'void'
return <AbiValue abiValue={returnProp} />
}
2 changes: 1 addition & 1 deletion src/features/abi-methods/components/decoded-abi-method.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function DecodedAbiMethod({ abiMethod }: Props) {
</div>
<div className="mt-4">
<span>Returns: </span>
<DecodedAbiMethodReturnValue returnRepresentation={abiMethodRepresentation.return} />
<DecodedAbiMethodReturnValue return={abiMethodRepresentation.return} />
</div>
</div>
)
Expand Down

0 comments on commit 4ba01fc

Please sign in to comment.