Skip to content

Commit

Permalink
feat(did-provider-ethr): Using meta account
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed May 17, 2022
1 parent cf14cae commit 994e5af
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 994e5af

Please sign in to comment.