From 1e9413f487c18da4937ecbae8ed066234f1fd410 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Mon, 15 Jul 2024 13:32:59 -0600 Subject: [PATCH] Update - Gnosis docs : note about browser extension for handling CORS (#2258) * Update docs for gnosis/safe package for building within vue env * Add clarity and remoinder for peerDeps * Add cors blocking extension notes --- docs/src/routes/docs/[...4]wallets/[...12]gnosis/+page.md | 7 ++++++- packages/gnosis/README.md | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/src/routes/docs/[...4]wallets/[...12]gnosis/+page.md b/docs/src/routes/docs/[...4]wallets/[...12]gnosis/+page.md index e8c124ba4..e4612b4d8 100644 --- a/docs/src/routes/docs/[...4]wallets/[...12]gnosis/+page.md +++ b/docs/src/routes/docs/[...4]wallets/[...12]gnosis/+page.md @@ -79,7 +79,12 @@ Note: With the `safeTxGas` you will see additional value on the `gasLimit` displ ## Build Environments -For build env configurations and setups please see the Build Env section [here](/docs/modules/core#build-environments) +For build env configurations and setups please see the Build Env section [here](/docs/modules/core#build-environments). + + +## Local testing within the Safe app + +Ensure the application is building and working properly within the browser and then add or enable your cors blocker extension or script of choice. An example is the `Allow CORS` browser extension. ## Vue Build Configuration diff --git a/packages/gnosis/README.md b/packages/gnosis/README.md index ebd5e430b..3e4a79c16 100644 --- a/packages/gnosis/README.md +++ b/packages/gnosis/README.md @@ -59,6 +59,10 @@ let trans = await wallet.instance.txs.send({txs:[tx], params}) Note: With the `safeTxGas` you will see additional value on the `gasLimit` displayed in the Safe. Check [Safe docs](https://github.com/safe-global/safe-contracts/blob/a6504a9afdeac186a8cdb29ad68b189523c80eda/docs/safe_tx_gas.md) for full details on that computation. +## Local testing within the Safe app + +Ensure the application is building and working properly within the browser and then add or enable your cors blocker extension or script of choice. An example is the `Allow CORS` browser extension. + ## Vue Build Configuration If using Vue be sure to include the necessary peerDeps in the `vite.config.ts` specifically within the `optimizeDeps.include` list and install the necessary peer deps `npm i @safe-global/safe-apps-provider @safe-global/safe-apps-sdk`.