Skip to content

Commit

Permalink
Merge pull request #54 from ankur325/Fix_Revocation_Point_Form
Browse files Browse the repository at this point in the history
Fix Keplr wallet issue
  • Loading branch information
ankur325 authored Aug 6, 2024
2 parents f1ef337 + 3006687 commit 19f4353
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dcl-ui",
"version": "1.0.16",
"version": "1.0.17",
"description": "A Vuejs based application for managing CSA Distributed Compliance Ledger",
"author": "Comcast Inc.",
"private": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { RevokedRootCertificates } from "./module/types/pki/revoked_root_certifi
import { UniqueCertificate } from "./module/types/pki/unique_certificate";
export { ApprovedCertificates, ApprovedCertificatesBySubject, ApprovedRootCertificates, Certificate, CertificateIdentifier, ChildCertificates, Grant, PkiRevocationDistributionPoint, PkiRevocationDistributionPointsByIssuerSubjectKeyID, ProposedCertificate, ProposedCertificateRevocation, RejectedCertificate, RevokedCertificates, RevokedRootCertificates, UniqueCertificate };
async function initTxClient(vuexGetters) {
return await txClient(vuexGetters['common/wallet/signer'], {
return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], {
addr: vuexGetters['common/env/apiTendermint']
});
}
Expand Down
11 changes: 9 additions & 2 deletions src/views/PKI/PkiRevocationDistributionPoint.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,15 @@ export default {
return
}
const wallet = this.$store.getters['common/wallet/wallet']
const account = wallet.accounts[0]
let account;
if(this.$store.state.selectedKeplrAccount) {
account = this.$store.state.selectedKeplrAccount;
} else {
const wallet = this.$store.getters['common/wallet/wallet'];
account = wallet && wallet.accounts && wallet.accounts.length > 0 ? wallet.accounts[0] : null;
}
const creatorAddress = account.address
this.txProcessing = true;
Expand Down

0 comments on commit 19f4353

Please sign in to comment.