Skip to content

Commit

Permalink
Encode uri space key
Browse files Browse the repository at this point in the history
  • Loading branch information
bonustrack committed Apr 19, 2021
1 parent b4b7960 commit e6754e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,11 @@ export default {
return !this.loading && this.web3.account && this.validate === true;
},
contenthash() {
const key = encodeURIComponent(this.key);
const address = this.web3.account
? getAddress(this.web3.account)
: '<your-address>';
return `ipns://storage.snapshot.page/registry/${address}/${this.key}`;
return `ipns://storage.snapshot.page/registry/${address}/${key}`;
},
isReady() {
return this.currentContenthash === this.contenthash;
Expand Down

0 comments on commit e6754e3

Please sign in to comment.