Skip to content

Invalid function name: fulfillBasicOrder_efficient_6GL6yc #1816

@Qlio

Description

@Qlio

Component

SDK

Have you ensured that all of these are up to date?

  • opensea-js
  • Node (minimum v16)

What version of opensea-js are you on?

8.0.5

What function is the bug in?

fulfillBasicOrder_efficient_6GL6yc

Operating System

None

Describe the bug

I'm using the latest opensea-js SDK (8.0.5) and encountering an error when calling the fulfillOrder function.

Error:

TypeError: unknown function (argument="fragment", value="fulfillBasicOrder_efficient_6GL6yc", code=INVALID_ARGUMENT, version=6.15.0)

Context:
After some debugging, it seems that opensea-js depends on @opensea/seaport-js@4.0.5 (which is also the latest version).
The error occurs in opensea-js/src/sdk/fulfillment.ts at line 210:

const encodedData = seaportInterface.encodeFunctionData(
  functionName,
  params,
);

The issue appears to be that the Seaport ABI provided by @opensea/seaport-js does not include the method fulfillBasicOrder_efficient_6GL6yc, which is being referenced by opensea-js.

Expected behavior:
fulfillOrder should correctly encode and execute the fulfillment transaction without throwing a missing function error.

Environment:

opensea-js: 8.0.5
@opensea/seaport-js: 4.0.5
ethers: 6.15.0

Additional notes:
It looks like opensea-js may be attempting to use a Seaport contract version whose ABI differs from the one bundled in @opensea/seaport-js. Updating the ABI or function mapping might resolve this mismatch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions