Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when calling acceptClusterDefinition with the sdk v2.0.1 #56

Closed
asanson1404 opened this issue Aug 15, 2024 · 1 comment
Closed
Assignees

Comments

@asanson1404
Copy link

asanson1404 commented Aug 15, 2024

Hey,

I'm trying to accept to join a cluster using Obol SDK v2.0.1.

I'm calling acceptClusterDefinition as following:

const acceptClusterDefinition = async ({ enr, version }, configHash, client) => {
  try {
    //const client = await obolClient();
    const updatedClusterDefintiion =  await client.acceptClusterDefinition(
      {
        enr,
        version,
      },
      configHash
    );
    return updatedClusterDefintiion;
  } catch (err) {
    console.log(err, "err");
  }
};

// Wallet1
await acceptClusterDefinition({enr: enr1, version: 'v2.0.1'}, "0x01b4370217f7d4a3c03c71f6583fec943a315226fee7db55707f562af097a800", client1);

I get that error message:

{
  message: 'Invalid payload data',
  error: 'Bad Request',
  statusCode: 400
} err

Do you know what happens?

@HananINouman
Copy link
Collaborator

hey @asanson1404,
enr should be a valid enr, you can check this section in our docs to know more, and version should be the version used when creating the cluster, its v1.8.0 for your cluster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants