Skip to content

Commit

Permalink
Merge pull request #36 from planetarium/hotfix-rawdata
Browse files Browse the repository at this point in the history
fix(popup): mark wallet as raw to avoid wrapping as proxy
  • Loading branch information
moreal authored May 15, 2024
2 parents c9ae21a + 26489f8 commit f88f9d5
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 78 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ jobs:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8
version: 9
run_install: true
- run: pnpm -r build
2 changes: 1 addition & 1 deletion background/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"test": "jest --coverage --detectOpenHandles"
},
"dependencies": {
"@planetarium/account": "^4.4.2",
"@planetarium/account": "~4.4.2",
"@planetarium/bencodex": "0.2.2",
"@planetarium/tx": "^4.4.2",
"axios": "^0.24.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/daily-reward-dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@apollo/client": "^3.9.11",
"@planetarium/account": "^4.4.2",
"@planetarium/account": "~4.4.2",
"@planetarium/bencodex": "^0.2.2",
"@planetarium/chrono-sdk": "workspace:^",
"buffer": "^6.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/chrono-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"typescript": "^5.4.5"
},
"dependencies": {
"@planetarium/account": "^4.4.2",
"@planetarium/account": "~4.4.2",
"@planetarium/bencodex": "^0.2.2",
"@planetarium/tx": "^4.4.2",
"buffer": "^6.0.3"
Expand Down
94 changes: 22 additions & 72 deletions pnpm-lock.yaml

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

5 changes: 3 additions & 2 deletions popup/src/views/InitiateMnemonic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
</template>

<script>
import { markRaw } from "vue";
import InitiateHeader from "@/components/InitiateHeader.vue";
import _ from "underscore"
import t from "@/utils/i18n";
Expand Down Expand Up @@ -104,8 +105,8 @@ export default {
}
let passphrase = this.$route.params.passphrase
if (passphrase) {
this.wallet = ethers.Wallet.createRandom({locale: 'en'})
let m = await this.wallet.mnemonic
this.wallet = markRaw(ethers.Wallet.createRandom({locale: 'en'}));
let m = this.wallet.mnemonic
this.mnemonic = m.phrase
} else {
await this.$router.replace({name: 'initiate'})
Expand Down

0 comments on commit f88f9d5

Please sign in to comment.