Skip to content

Tutorial 1: Error in multiple sendTransaction #7

@allen-mak

Description

@allen-mak

When sending multiple transactions in sendTransaction()

const txHashMultiple = await smartAccountClient.sendTransaction({ calls: [ { to: "0x3c44cdddb6a900fa2b585dd299e03d12fa4293bc", value: 0n, data: "0x1234", }, { abi: [{"inputs":[],"name":"getLastGreeter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"greet","outputs":[],"stateMutability":"nonpayable","type":"function"}], functionName: "greet", args: [], to: "0x6D7A849791a8E869892f11E01c2A5f3b25a497B6" } ], })

Error is returned:
UserOperationExecutionError: The contract function "greet" returned no data ("0x").

This could be due to any of the following:

  • The contract does not have the function "greet",
  • The parameters passed to the contract function may be invalid, or
  • The address is not a contract.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions