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

createVcTransaction return Invalid arguments #78

Open
samuraitruong opened this issue Apr 12, 2022 · 0 comments
Open

createVcTransaction return Invalid arguments #78

samuraitruong opened this issue Apr 12, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@samuraitruong
Copy link

Description

I add console logs into the createVcTransaction and confirm it has 3 params
2nd params is the string
3rd params as below

  _key: Ed25519PublicKey {
    _keyData: Uint8Array(32) [
      212,  37,  93, 181,   0, 126,  44,  56,
      105,  98,  51, 132, 136,  53, 125, 144,
      151, 184, 107,   3, 128,  23, 239,  91,
       72, 192, 150, 224, 202,  85, 241, 243
    ]
  }
}```

but the resolve of args[2] instanceof PublicKey -> false that why it come to the else statement




### Steps to reproduce

1. set up workspaces project using yarn
2. in the project add both dependency
.```
     "@hashgraph/did-sdk-js": "0.1.1",
    "@hashgraph/sdk": "2.6.0",
  1. create Hedera helper on the main project with sdk 2.6.0
    const hederaHelper = HederaHelper.setOperator(
    hederaAccountId,
    hederaAccountKey,
    ).setAddressBook(null as any, null as any, topic);

Then later call hederaHelper.DID.createVcTransaction(vc, hederaAccountKey);

when hedera helper v2.6.0 create the call it using PublicKey refer on 2.6.0, but when inside the library there also has hedera 2.0.20 that make the validation become not valid

The workaround I can delete the sdk inside did after install or make the sdk version same with did sdk version.

I think it is good time to update the sdk to 2.6.0

Additional context

No response

Hedera network

testnet

Version

0.1.0

Operating system

macOS

@samuraitruong samuraitruong added the bug Something isn't working label Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant