Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Bug: mainnet reported when sepolia is connected #40

@jac18281828

Description

@jac18281828

Describe the bug

mainnet reported on sepolia

$ curl -H "Content-Type: application/json" -d '{"id":"1", "jsonrpc":"2.0", "method":"did_resolveDid", "params":{ "publicKey":"0x12345679abcdef" }}' http:///localhost:8080

{
  "jsonrpc": "2.0",
  "result": {
    "didDocumentMetadata": {
      "deactivated": false,
      "versionId": 4918526,
      "updated": "2023-12-19T17:54:12Z"
    },
    "didResolutionMetadata": {
      "contentType": "application/did+ld+json"
    },
    "didDocument": {
      "@context": [
        "https://www.w3.org/ns/did/v1",
        "https://w3id.org/security/suites/ed25519-2020/v2"
      ],
      "id": "did:ethr:mainnet:0x12345679abcdef",
      "verificationMethod": [
        {
          "id": "did:ethr:mainnet:0x12345679abcdef#controller",
          "controller": "did:ethr:mainnet:0x12345679abcdef",
          "type": "EcdsaSecp256k1VerificationKey2019",
          "blockchainAccountId": "0x12345679abcdef"
        }
      ]
    }
  },
  "id": 1
}

Expected behavior

RPC connection should be used for default network information or network should not be defaulted when it is not known.

Steps to reproduce the bug

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions