Skip to content

Commit

Permalink
Merge pull request #159 from etherspot/fix/PRO-2576/update-new-wallet…
Browse files Browse the repository at this point in the history
…-factory

fix/PRO-2576/update-new-wallet-factory
  • Loading branch information
RanaBug authored Aug 9, 2024
2 parents 94424c3 + e336789 commit 985fd00
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 25 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [0.15.0] - 2024-08-08

### Breaking Changes
- Updated `@etherspot/modular-sdk` with new wallet factory contract address
- `IMPORTANT`: To access previous wallet factory contract address, please use 0.14.1 or below, and move assets from wallets before updating to 0.15.0+

## [0.14.1] - 2024-07-11

### Added Changes
Expand Down
30 changes: 15 additions & 15 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ const App = () => {
if (expired) return;

setBalancePerAddress(updatedBalances);
await listModules().then((list) => setModulesList(list));
await listModules().then((list) => setModulesList(list)).catch((e) => setModulesList(undefined));
};

refreshBalances();
Expand Down Expand Up @@ -259,22 +259,22 @@ const App = () => {
<Typography>{etherspotPrimeOrModularAddress}</Typography>
</Paper>
)}
<Box sx={{ borderBottom: 1, borderTop: 1, borderColor: 'divider' }} mt={4} py={4}>
{modulesList && (
<div>
<Typography>Modules installed:</Typography>
<ul>
{modulesList.validators?.map((module, i) => (
<li key={i}>
<Typography fontSize={14}>{module}</Typography>
</li>
))}
</ul>
</div>
<Box sx={{ borderBottom: 1, borderTop: 1, borderColor: 'divider' }} mt={4} py={4}>
<div>
<Typography>Modules installed:</Typography>
<ul>
{modulesList.validators?.map((module, i) => (
<li key={i}>
<Typography fontSize={14}>{module}</Typography>
</li>
))}
</ul>
</div>
<button onClick={onInstallModuleClick}>Install a module</button>
<button onClick={onUninstallModuleClick}>Uninstall a module</button>
</Box>
)}
<button onClick={onInstallModuleClick}>Install a module</button>
<button onClick={onUninstallModuleClick}>Uninstall a module</button>
</Box>
</Box>
<Box sx={{ borderBottom: 1, borderColor: 'divider' }}>
<Tabs value={activeTab} onChange={(event, id) => setActiveTab(id)}>
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

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

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "@etherspot/transaction-kit",
"description": "React Etherspot Transaction Kit",
"version": "0.14.1",
"version": "0.15.0",
"main": "dist/cjs/index.js",
"scripts": {
"rollup:build": "NODE_OPTIONS=--max-old-space-size=8192 rollup -c",
"rollup:watch": "rimraf ./node_modules/react ./node_modules/react-dom && rollup -c -w",
"test": "jest __tests__ --silent --detectOpenHandles",
"test:watch": "jest --watch"
"test:watch": "jest --watch",
"postinstall": "node post-message.js"
},
"repository": {
"type": "git",
Expand All @@ -22,7 +23,7 @@
"homepage": "https://github.com/etherspot/transaction-kit#readme",
"dependencies": {
"@etherspot/eip1271-verification-util": "0.1.2",
"@etherspot/modular-sdk": "1.1.2",
"@etherspot/modular-sdk": "2.0.0",
"@etherspot/prime-sdk": "1.8.1",
"buffer": "^6.0.3",
"ethers": "^5.6.9",
Expand Down
1 change: 1 addition & 0 deletions post-message.js

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

2 changes: 1 addition & 1 deletion src/hooks/useEtherspotModules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const useEtherspotModules = (chainId?: number): IEtherspotModulesHook => {
} catch (e) {
console.error(
`Sorry, an error occurred whilst trying to list all your wallet modules on`
+ ` ${modulesForAccount}. Please try again. Error:`,
+ ` ${modulesForAccount}. Please make sure your account is deployed and try again. Error:`,
e,
);
throw new Error(`Failed to list all modules: ${e}`)
Expand Down

0 comments on commit 985fd00

Please sign in to comment.