Skip to content

Commit

Permalink
Merge pull request #886 from uport-project/feature/kms-eth-signer-acc…
Browse files Browse the repository at this point in the history
…ount

feat(did-provider-ethr): Using meta account
  • Loading branch information
simonas-notcat authored May 17, 2022
2 parents cf14cae + 994e5af commit 6c976a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/did-provider-ethr/src/kms-eth-signer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ export class KmsEthereumSigner extends Signer {
}

async getAddress(): Promise<string> {
// publicKeyHex is not available when using web3provider
if (this.controllerKey.meta?.account) {
return this.controllerKey.meta?.account
}
return computeAddress('0x' + this.controllerKey.publicKeyHex)
}

Expand Down

0 comments on commit 6c976a0

Please sign in to comment.