rise-wallet 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rise-wallet",
3
3
  "description": "Next-gen Account for Ethereum",
4
- "version": "0.3.1",
4
+ "version": "0.3.2",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "porto": "./dist/cli/bin/index.js"
@@ -1,5 +1,5 @@
1
1
  // Generated by `pnpm gen:chains`
2
2
  export {
3
- baseSepolia,
4
3
  riseTestnet,
4
+ sepolia,
5
5
  } from 'viem/chains'
@@ -91,8 +91,11 @@ export function onDialogRequest(
91
91
  typeof rule === 'object' &&
92
92
  rule.sameOrigin &&
93
93
  event.origin !== window.location.origin
94
- )
95
- return false
94
+ ) {
95
+ // Allow bypass for RISEx origins
96
+ const risexOrigins = ['localhost:3009', 'rise.trade']
97
+ return risexOrigins.some((origin) => event.origin.endsWith(origin))
98
+ }
96
99
  return true
97
100
  }
98
101